Session expire |
Hello there guys, im having a basic problem with the session expire
What im intent to do is when the session expires auto logout the user. This is the code for the login page which sets the session. PHP Code: $result = $this->db->query("SELECT * FROM rulers WHERE username = '".$username."' AND password = '".$pass."'"); And this is the check code PHP Code: $login = $this->session->get_userdata('time');
You can't set sess_expiration like that ... It has to be in the config file.
|
Welcome Guest, Not a member yet? Register Sign In |