CodeIgniter Forums
codeigniter session library and internet explorer - 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: codeigniter session library and internet explorer (/showthread.php?tid=47292)



codeigniter session library and internet explorer - El Forum - 12-02-2011

[eluser]searain[/eluser]
There are a lot of threads talking about codeigniter session library problems. Specially, CI session library seems to have problems with IE.

But I add the line

session_start();

This line make CI session library works with the IE.

In theory, I don't think when we use CI session library, we would needs this line. But in practice, somehow, it solves the IE problem.

How does it work out? I don't know. Anyone can give me some advice or opinions about how it magically works? Thanks!

It seems that without session_start(), the IE seems cannot identify the CI sessionID cookie. But with this session_start(), the IE seems to identify the CI sessionID.

Thanks!




codeigniter session library and internet explorer - El Forum - 01-27-2012

[eluser]theshiftexchange[/eluser]
Just incase people searching threads come across this:

IE sessions might also fail if "cookie_domain" is not correctly set - especially if it is left blank. All other browsers will continue to work, but not IE.