Topic: Codeigniter sessions problem in IE6
I am having some strange issues with CI’s session class in IE6. I searched through these forums all morning and was not able to find a solution.
Basically all I am trying to do at this point is create a simple session-based login system where the user can sign in and the session stores their username, ID, and a boolean flagging if they are logged in our not:
if($pw == $user['user_pass'])
{
$newdata = array(
'user_name' => $un,
'logged_in' => TRUE
);
this->session->set_userdata($newdata);
}
Etc. This is quite simple and I have done it many times before with no problem. My code works like a champion in FF, but for some reason IE6 just doesn’t see the session variables no matter what. When I try to echo out the variables:
echo $this->session->userdata('logged_in');
it doesn’t error, but they just don’t show up in IE (though they work perfectly in FF, as usual). I’m at least 90% sure this is simply a user agent problem, but I have been fiddling with IE all morning with no results and, like I said, it works perfectly in FF. Has anyone else run into a situation like this or have any suggestions on how I can make these cookies work? Research indicates that IE6 is quirky in the way it handles CI cookies, I’m going to install IE7 and see how it reacts to the code. Any thoughts would be appreciated.
EDIT: I also tried it on IE7 and it does the exact same thing. Are there any CI heads out there, and if so do you have any ideas?
-Rhino
Last edited by Rhino (2007-05-29 10:12:13)