Welcome Guest, Not a member yet? Register   Sign In
Session Garbage Collection for expired logged in users
#8

[eluser]WanWizard[/eluser]
I find the setup a bit odd.

In our case, you will keep all session records that have a logged-in flag (everyone that closed the browser without logging off, that is 99% of the users?) or cart contents. Forever? Over time, that's going to be quite a database I'm afraid, hardly any records will be deleted.

I would rather opt for a session expiry of say one month (I can't judge what period is long enough for you). Everyone that hasn't visited the site in a month won't be interested in keeping the login state remembered, and chances are the cart contents is out of date (products and prices tend to change). And have CI do the garbage collection. You can increase the gc probablility if you want the gc to happen more often.

ExiteCMS allows the administrator to define the session expiry, from 'expire when browser closes' to never. Our code is Open Source and public, see the link in my signature.


Messages In This Thread
Session Garbage Collection for expired logged in users - by El Forum - 07-21-2010, 01:18 AM
Session Garbage Collection for expired logged in users - by El Forum - 07-21-2010, 09:41 AM
Session Garbage Collection for expired logged in users - by El Forum - 07-21-2010, 10:03 AM
Session Garbage Collection for expired logged in users - by El Forum - 07-21-2010, 01:20 PM
Session Garbage Collection for expired logged in users - by El Forum - 07-21-2010, 02:52 PM
Session Garbage Collection for expired logged in users - by El Forum - 07-21-2010, 03:47 PM
Session Garbage Collection for expired logged in users - by El Forum - 07-21-2010, 05:50 PM
Session Garbage Collection for expired logged in users - by El Forum - 07-21-2010, 11:58 PM
Session Garbage Collection for expired logged in users - by El Forum - 07-22-2010, 12:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB