Welcome Guest, Not a member yet? Register   Sign In
session doesn't keep between pages :O ?
#1

[eluser]Unknown[/eluser]
Hi,

Somehow my login seems to work fine using session but as soon as the page is refreshed in anyway or the user goes to another page via the navigation the session is lost and the user is logged out.

Not sure what code i should show but this is seriously annoying, is this a known issue?


I'm using CI sessions, and its handled by my login_model.

Row that sets the session:
Code:
$this->session->set_userdata('user', $userObject);

Rows in a function that checks so the session is set
Code:
if($this->session->userdata('user'))
     {
        return true;
       }
       else
       {
        return false;
       }




Theme © iAndrew 2016 - Forum software by © MyBB