![]() |
Session Wont Set on IE7 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Session Wont Set on IE7 (/showthread.php?tid=8276) |
Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]Derek Jones[/eluser] Did you read the whole thread, bd3521? Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]bd3521[/eluser] [quote author="Derek Jones" date="1255114113"]Did you read the whole thread, bd3521?[/quote] Yes, remove the underscore from the session name. Is that really the work around? Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]Derek Jones[/eluser] No, that's a red herring, check a few posts down from the one you quoted above. :-D Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]bd3521[/eluser] [quote author="Derek Jones" date="1255117942"]No, that's a red herring, check a few posts down from the one you quoted above. :-D[/quote] I have the NTP sync timeservice enabled on my linux server and if i enter "date" from the command line its correct. $ date Fri Oct 9 13:11:32 EDT 2009 Do I have to look somewhere else? Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]Derek Jones[/eluser] What about on the windows machine? I suspect if the local machine's time is incorrect as well, the same problem could occur. Also, using the NTP service syncs up the time correctly, but is that server configured for the right time zone as well? Including in the PHP environment. Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]bd3521[/eluser] [quote author="Derek Jones" date="1255126588"]What about on the windows machine? I suspect if the local machine's time is incorrect as well, the same problem could occur. Also, using the NTP service syncs up the time correctly, but is that server configured for the right time zone as well? Including in the PHP environment.[/quote]Weird... PHP.ini date.timezone = "America/New_York" Linux and MySql seem also to report the same time. Windows pc has the time sync as well to time.nist.gov and manually confirmed it. When I upgraded to php 5.3.0-2 it threw warnings about the time zone a few weeks ago not being set so I set it in the php.ini. CI config $config['time_reference'] = 'local'; Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]Derek Jones[/eluser] Not sure then, bd3521, you may have stumbled onto a new issue - but it's safe to say that underscores are perfectly acceptable characters for cookie names. Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]bd3521[/eluser] [quote author="Derek Jones" date="1255127371"]Not sure then, bd3521, you may have stumbled onto a new issue - but it's safe to say that underscores are perfectly acceptable characters for cookie names.[/quote] Thanks for the help, I will keep researching this. Did find this post though... http://genotrance.wordpress.com/2006/11/23/session-cookies-rejected-by-internet-explorer/ Session Wont Set on IE7 - El Forum - 10-09-2009 [eluser]n0xie[/eluser] Did you try the link in my sig? It might help you solve your mystery. Session Wont Set on IE7 - El Forum - 10-27-2010 [eluser]Unknown[/eluser] I was able to fix this problem by automatically redirecting users who entered the domain without using www's. I had the session library auto loaded so it would write a session when the user loaded the site: cookie:username@mydomain Then they would use my login from to enter the site but now the session library creates a new cookie with the full domain name (not sure why and I haven't dug up the code to diagnose the cause). cookie:[email protected] So they login fine for one session and then come back at a later date. When they attempt to log in now there's 2 cookie files stored that apparently confuse IE (build 7.0.5730.13). When I delete the original (cookie:username@mydomain) the login works fine. Now I've update my domain to force redirect to the www.mydomain.com via an .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} !www\.mydomain\.com [NC] RewriteRule ^/(.*) http://www.mydomain.com/$1 The original cookie that gets set via the session library is now setting to cookie:[email protected] and the login works every time. Presumably because the session updates instead of creating a new one since the domains match now. Thanks IE. |