Welcome Guest, Not a member yet? Register   Sign In
Session gets destroyed
#2

[eluser]gtech[/eluser]
The sessionid is supposed to get regenerated after every 5 minutes (or 300 seconds), this is a security measure to make session hijacking more difficult. But I dont understand why that would log your user out? the session data is still there and you can still retrieve it, as a copy is made when the new id is generated.

Code:
// session data can still be retrieved after the sess_id has changed
$this->session->userdata('<variable name>');

maybee the session is expiring?, see sess_expiration in the config. this would cause the session to be destroyed.


Messages In This Thread
Session gets destroyed - by El Forum - 06-18-2009, 01:46 AM
Session gets destroyed - by El Forum - 06-18-2009, 09:17 AM
Session gets destroyed - by El Forum - 06-18-2009, 09:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB