CodeIgniter Forums
ci_session expires immediatly in chrome and IE9, working in Firefox - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: ci_session expires immediatly in chrome and IE9, working in Firefox (/thread-55308.html)



ci_session expires immediatly in chrome and IE9, working in Firefox - El Forum - 10-19-2012

[eluser]davidinchi[/eluser]
Hello,

I'm working with CodeIgniter 2.1.3 and Flexi-auth.

When a user logs in and refresh or goes to another web the user is logout.

I tried to follow some instructions like change values in the config.php like:
$config['sess_cookie_name'] = 'cisession'; //'ci_session';
$config['sess_expiration'] = 43200; //7200
$config['sess_expire_on_close'] = TRUE; //FALSE
$config['sess_match_useragent'] = FALSE; //TRUE

but with no luck.

If I look the ci_session (or cisession in my case) cookie I can see that it has been created with a expiration value equal to the current time (so it's created to die).

In Firefox the cookie expires: "At end of session".

Any idea?,

Best.