CodeIgniter Forums

Full Version: Session in DB, odd problem with sess_expire_on_close
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]CodeIgniterNewbie[/eluser]
I've encountered a very odd problem with CI's session when stored in the DB. I'm using sessions to store information about whether or not a user is logged in on my site. For some reason, a friend of mine from Lithuania (I mention the country in case it's relevant somehow) could not log in. When I monitored the session table, it seemed like she was created a new session for each page she went to. She tried using various browsers, but the same problem occurred regardless of browser. No one else has this problem (all other testers are outside of Lithuania).

Here's the odd thing: I was able to fix her problem by setting sess_expire_on_close = TRUE. I'm guessing that can't possibly be the fix, but whenever I set it back to FALSE, the problem comes back.

My other problem is that I seem to occasionally lose session data, which means the user gets logged off. Not sure what causes this. I'm going to post a different SO question for it, but thought it might be useful to mention it here.