Welcome Guest, Not a member yet? Register   Sign In
CI session expires rapidly
#7

[eluser]joao.sobrinho[/eluser]
In my aplication I'm having the same type of problem...

After the 5 minutes, (or whatever time I put in $config['sess_time_to_update'] ) the session expires and the user is redirected to login screen.

Somehow, it seems that when it regenerates, it's loosing the previous session and the previous session data.

I have these configurations in the config.php file:


Code:
$config['sess_cookie_name']    = 'ci_session';
$config['sess_expiration']    = 7200;
$config['sess_encrypt_cookie']    = FALSE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']    = 'ci_sessions';
$config['sess_match_ip']    = TRUE;
$config['sess_match_useragent']    = TRUE;
$config['sess_time_to_update']  = 300;

How can I make the session to keep the data for 2 hours after the last request from the user ?


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



Theme © iAndrew 2016 - Forum software by © MyBB