Welcome Guest, Not a member yet? Register   Sign In
How can we improve CI 3 sessions?
#5

I believe CI cleans this out automatically. If you set sess_regenerate_destroy to TRUE, then old session data will be removed when it is regenerated.

I must admit I was suprised by how much session data was generated even in a table, but to be honest, I am not sure I know enough about sessions to worry about it. Just one of those things I have to let CI take care of. Perhaps if I had time I could do some experimenting with it, but the session table never gets too large to worry about. And it does seem to clean itself out because it never seems to be filled with old data.

For instance, on a site I am building at the moment that only myself and one other person has access too during build, the oldest session record is from the 7th Feb, although have been building the site for much longer than that. So the garbage collector must be doing it's job. (There are 46 entries though, which is the bit that confuses me. But not enough to look into it in any detail.)

Best wishes,

Paul.
Reply


Messages In This Thread
How can we improve CI 3 sessions? - by ignitedcms - 02-12-2017, 09:24 AM
RE: How can we improve CI 3 sessions? - by PaulD - 02-12-2017, 09:44 AM
RE: How can we improve CI 3 sessions? - by PaulD - 02-12-2017, 10:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB