Welcome Guest, Not a member yet? Register   Sign In
Session on Database being lost
#1

[eluser]Paulodemoc[/eluser]
Hello guys, I am having trouble using CI's Session for some reason. I started using database sessions, it solved a lot of my problems. But now, something odd seems to be happening. If I put the session to expire after 10 seconds, then it works fine, after 10 seconds I have to login again. But if I put it to expire after 7200 (2 hours), sometimes it expires after 2 hours, sometimes after 40 minutes of idleness, sometimes after 10... Anyone know what might be causing this?

This is my session config on the config file:

Code:
$config['sess_cookie_name'] = 'ccm_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;


Messages In This Thread
Session on Database being lost - by El Forum - 09-02-2010, 10:49 AM
Session on Database being lost - by El Forum - 09-02-2010, 10:59 AM
Session on Database being lost - by El Forum - 09-02-2010, 11:00 AM
Session on Database being lost - by El Forum - 09-02-2010, 11:03 AM
Session on Database being lost - by El Forum - 09-02-2010, 11:04 AM
Session on Database being lost - by El Forum - 09-02-2010, 11:07 AM
Session on Database being lost - by El Forum - 09-02-2010, 11:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB