Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

Managing user sessions

$
0
0
Team - relative novice - so please be patient!

I am using CI 2.2 on a LAMP installation (Ubuntu 14.02). Our website uses sessions and stores data in a mysql table. Certain user interactions have callbacks which I assume start new CI instances. What I am confused about is how I reconnect - if indeed this is possible - the new instances with the users current browser connection. The reason I want to do this is to use flashdata to pop up some information windows on their browser. Further I would like to be able to test whether they have a current browser connection and let my code behave accordingly. I have read about garbage collection of sessions which seems to suggest the session_id is not a guarantee of their session being open. We do user userdata to store small site-related array which includes a logged-in boolean. So if I test that and it says looged out, but the session still exists in my DB I would like to be a bit more certain abut what the enduser is or is not doing.

Can anyone shed some light for me - this must be a common problem with some common solutions!

Appreciated, Paul

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>