• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 02:46 AM
Session gets destroyed - by El Forum - 06-18-2009, 10:17 AM
Session gets destroyed - by El Forum - 06-18-2009, 10:44 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.