Welcome Guest, Not a member yet? Register   Sign In
switching session settings in different controllers (same app)
#2

[eluser]bigtony[/eluser]
I presume there is some kind of login process for the admin to access the back-end, so you could simply set a session variable so you know this has happened.
Code:
$this->session->set_userdata('admin', 1);
Then, condition your front-end so it only ends the session when the admin session variable is not set.
Code:
if (($this->session->userdata('admin') != 1):
    // End front end session stuff...
endif;


Messages In This Thread
switching session settings in different controllers (same app) - by El Forum - 09-09-2009, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB