Welcome Guest, Not a member yet? Register   Sign In
Users lose CI session randomly and have to delete local cookie prior to logging in again
#5

[eluser]Firsh[/eluser]
[quote author="echadwickb" date="1296247310"]I may be misunderstanding your question, but I believe CI runs db sessions cleanup every time ANY user visits the website. Even if a user visits your website and never returns, any subsequent user's visit will clear that one time user's expired sessions.

Anybody want to back me up on this?[/quote]

Yeah this is what I'd like to know for sure. Because then I could move my file removal call to the sess_destroy() of CI's sessions. So I can avoid that auto ajax call.

Edit: SOLVED, It does not remove garbage sessions with each visit, it only includes some randomness to do it less often. But that runs on every page load, that's true. I was able to disable that and move my cleaning functions into MY_Sessions class.


Messages In This Thread
Users lose CI session randomly and have to delete local cookie prior to logging in again - by El Forum - 01-28-2011, 08:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB