Codeigniter session issue. It logs me out from admin when I visit the un-admin part of the site! |
[eluser]behnampmdg3[/eluser]
The admin is located in www.site.com/admin The site is located in www.site.com/site In admin I have a form and create a session to log in: Login create session: Code: if($this->input->post('password')=='wws') Code: if ($this->session->userdata('logged_in')!=TRUE) Why?????
[eluser]gummiforweb[/eluser]
When thing like this happen, what I'd do is, echo out the sessions to see what's the actual value is. For example: Code: var_dump($this->session->all_userdata()); try using the !== operator too. if all_userdata() is an empty array, then there's some setting problem. |
Welcome Guest, Not a member yet? Register Sign In |