• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI session expires rapidly

#4
[eluser]aidehua[/eluser]
In your config file look at this line:

Code:
$config['sess_time_to_update']     = 300;

300 seconds (5 minutes) is the default. See the user guide at
http://ellislab.com/codeigniter/user-gui...sions.html.

Quote:A session, as far as CodeIgniter is concerned, is simply an array containing the following information:

The user's unique Session ID (this is a statistically random string with very strong entropy, hashed with MD5 for portability, and regenerated (by default) every five minutes)

The rest of the session data is maintained, but the sessionID is, by design, regenerated every five minutes. I think that is why you are seeing your sessionID changing "more or less every 4 minutes" ;-)


Messages In This Thread
CI session expires rapidly - by El Forum - 01-09-2010, 03:01 PM
CI session expires rapidly - by El Forum - 01-09-2010, 03:19 PM
CI session expires rapidly - by El Forum - 01-09-2010, 03:23 PM
CI session expires rapidly - by El Forum - 01-09-2010, 03:58 PM
CI session expires rapidly - by El Forum - 01-09-2010, 04:36 PM
CI session expires rapidly - by El Forum - 01-10-2010, 03:16 AM
CI session expires rapidly - by El Forum - 03-01-2010, 06:51 AM
CI session expires rapidly - by El Forum - 03-01-2010, 09:18 AM
CI session expires rapidly - by El Forum - 03-02-2010, 05:20 AM
CI session expires rapidly - by El Forum - 03-04-2010, 08:48 AM
CI session expires rapidly - by El Forum - 03-15-2010, 01:46 AM
CI session expires rapidly - by El Forum - 03-15-2010, 03:09 AM
CI session expires rapidly - by El Forum - 03-15-2010, 03:17 AM
CI session expires rapidly - by El Forum - 03-15-2010, 03:29 AM
CI session expires rapidly - by El Forum - 03-15-2010, 03:39 AM
CI session expires rapidly - by El Forum - 03-15-2010, 03:44 AM
CI session expires rapidly - by El Forum - 03-16-2010, 04:26 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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