Welcome Guest, Not a member yet? Register   Sign In
Session Expiration
#1

[eluser]Stylec[/eluser]
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
Code:
$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 :-)




Theme © iAndrew 2016 - Forum software by © MyBB