Welcome Guest, Not a member yet? Register   Sign In
Session Cookies are not being reset or cleared
#1

[eluser]Ty Bex[/eluser]
I have ran into session issues many times in the past. I am running CI 1.7.3 for this client.

The issue is that the client can login with IE 7, 8, 9 but after a day then the cookie gets stuck. I am not able to login because the session data just clears unless I rename the cookie to another name. Why won;t it clear the old cookie?

Code:
$config['sess_cookie_name']      = 'mcisession';
$config['sess_expiration']       = 7200;
$config['sess_expire_on_close']  = FALSE;
$config['sess_encrypt_cookie']   = FALSE;
$config['sess_use_database']     = FALSE;
$config['sess_table_name']       = 'ci_sessions';
$config['sess_match_ip']         = FALSE;
$config['sess_match_useragent']  = FALSE;
$config['sess_time_to_update']   = 300;
#2

[eluser]CroNiX[/eluser]
check the date/time on the server. If it's too far off from actual time IE will dump the cookie as expired as the times don't match.

Also, you aren't matching the IP or the user agent to maintain sessions. Not sure how it would match without one of them.




Theme © iAndrew 2016 - Forum software by © MyBB