CodeIgniter Forums
Session Expiration - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Session Expiration (/thread-9457.html)

Session Expiration - El Forum - 06-25-2008

Hi guys, hopefully a quick question.

I'm trying to use DB2_Session to create a simple login form.

This is what I think happens, correct me if im wrong.

- When a user logs in, a session is added to the database that could store the userID of the user.
- The cookie stores the session_id.

So far I think I understand, but now what happens if the user comes back, say the next day. The session will have expired and so they will have to login again?

If I set
$config['sess_expiration'] = 0;
then when they return they will still be logged in. But won't the table just continuously fill up as. Should you then run some code to delete the old session.

Thanks for any help :-)