CodeIgniter Forums
session class bug? HELP please - 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: session class bug? HELP please (/thread-53515.html)



session class bug? HELP please - El Forum - 07-27-2012

[eluser]rei[/eluser]
Hi, Im experiencing a bug in session class of CI. when store data in session and echo it, it works fine in FireFox, But on all other browsers they dont output data. But when I try it in other computers it works fine. Did someone already experienced this? I already cleared cache of my browser but it still dont work. Can someone give me suggestions how to solve this problem. or is this really a bug in the session class?


session class bug? HELP please - El Forum - 07-27-2012

[eluser]rei[/eluser]
For those who will encounter a bug in the Session Library of CodeIgniter like me ( session data being lost when using redirects instead of $this->load->view() function ). Try this fix -- https://github.com/staskus/codeigniter-2.--native-session

It solved my problem.

Reference: http://stackoverflow.com/questions/1703770/code-igniter-login-session-and-redirect-problem-in-internet-explorer




However if someone knows a better fix for my problem please suggest it because I really wanted to use the original session library of CI because I think it is more secure. But I'm not sure though because I think this native php session library is also validating if the session match the user agent and it also stores session data in the database.