On 2/3/2011 9:06 AM, Ludovic Marcotte wrote:
c_lastseen might be updated even if YOU don't do anything in the Web
UI because there is AJAX kungfu running in the background.
c_lastseen will also NOT be updated everything YOU do something in the
web interface - it'll be updated whenever there's a cache miss in
memcached. That is precise enough and it'll generate way less updates
to the db.
To make sure, I'm understanding this right, if the web browser to open
to the SOGo page, magic AJAX kungfu will reset the c_lastseen every few
minutes (ish) regardless of user input. Now, I have a cron job that
deletes stale entries:
DELETE FROM sogo_sessions_folder WHERE extract('epoch' from
current_timestamp)-c_lastseen > 30*60
What this does is remove sessions that have been improperly closed. As
in, I log in to sogo and then close my sogo tab without logging out. If
I want to close sessions where the web browser is open, but the user
isn't using it, currently I cannot. But unlike before, if the web
browser doesn't delete the cooking and/or close the session, when a user
goes back to the sogo url, they will not be logged in from previous session.
Did I get that right?
--
[email protected]
https://inverse.ca/sogo/lists