Alan Holden said the following on 03/02/2013 06:36 PM: > It could be event-based, not timer based. > onSessionEnd() doesn't run when the session officially ends. It does it periodically every 5 minutes or so and then reaps dead sessions. So if you have an extremely low timeout (say 1-2 minutes), it may not run at all -- especially the client reconnects in a timely fashion with the same cookies.
My suggestion is for your client to send a JS "heartbeat" back to the server every 1 minute with a timestamp. The results of a clients can be in a struct -- then reap the ones with heartbeat timestamps that are too old. You can have a scheduled task that runs once per minute to reap old clients. -- Peter J. Farrell OpenBD Steering Committee / Mach-II Lead Developer http://blog.maestropublishing.com Identi.ca / Twitter: @maestrofjp Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
