IE8 losing session |
|||
|---|---|---|---|
| Date: | 06/30/2009 | Severity: | Minor |
| Status: | New | Reporter: | GlennJ |
| Version: | 1.7.1 | ||
| Keywords: | Libraries, Session Class | ||
Description
No necessarily a bug in CI, but a problem none the less.
IE8’s user agent string can change when moving between sites, causing the CI session to be destroyed.
See http://codeigniter.com/forums/viewthread/121637/
Not sure what you would do about this, apart from defaulting
$config[‘sess_match_useragent’] = FALSE;
or commenting the config to make coders aware.
Expected Result
Actual Result
Comment on Bug Report
| Posted by: g0nzo on 9 November 2009 11:35pm | |
|
|
This is not specific to IE8. I am experiencing this in Firefox 3.5.5 after setting session data and immediately using redirect(). |
| Posted by: jake.fin on 9 March 2010 8:23pm | |
|
|
In my experience this is either caused by the user agent problem mentioned above, or you are not setting the cookie domain in config correctly otherwise it will be a third-party cookie. I don’t think this is a bug, it’s IE’s default settings that won’t accept third party cookies with certain data contained in them (I think). Jake |
| Posted by: g0nzo on 9 March 2010 8:44pm | |
|
|
I believe I resolved this by looking closely at where I was redirecting (although it’s been several months). Turns out, my cookie was for ‘www’ whereas I was redirect to ‘domain.com’. So more likely a bug with the developer. |
