Ping the database for every 20 sec with AJAX and in every new page load.
In every ping update the session modified column.
In chat check if a session exists and if the modified value is newer the 40
sec.
Delete the session row at logout and run cron every hour to delete dead
sessions in order to keep the table "clean"

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to