different cookie handling IE vs. firefox/chrome/safari |
[eluser]kbroich[/eluser]
Hi guys, I am starting with Codeigniter and I am not sure if my issue has something to do with CI or if it is a general misunderstanding of HTTP. The thing that confuses me is that a login process leads to different results in Internet Explorer vs. Safari/Chrome/Firefox. Please take a look at the demo (You can enter whatever u want in the form) What am I doing? I render a form which takes an email and a password and creates a new user: Code: $this->exampleuser->create($this->input->post('email'), $this->input->post('password')); I also set a cookie to make sure that I am able to see that the user is already logged in when the page is refreshing or he/she comes back. Code: setcookie('loginstatus', TRUE); After that I redirect to the start page Code: redirect('stream'); to see if the user is logged in or not: Code: if ($this->exampleuser->isloggedin() == TRUE) { In FF/Chrome/Safari it works without problems. But for some reason the Internet Explorer has trouble retreiving the cookie in the Code: $this->exampleuser->isloogedin() In there I do nothing more than Code: public function isloggedin() When I var_dump the retreived cookie in Internet Explorer it says bool(false) while in all other browsers there's a "1" in there. Does anybody have an idea what part I am missing? Thank u all in advance! |
Welcome Guest, Not a member yet? Register Sign In |