Session Class -> sess_destroy not removing session |
[eluser]aplund[/eluser]
Hi all, I also have problem with the sess_destroy. I have two controllers: web_public web_private in the web_private controller I have the following function ran every time the controller is accessed. Code: public function is_logged_in() My log in function (in the public controller) Code: public function do_login() My log out function (in the private controller) Code: public function do_logout() in the footer "session information" is: Code: <p>Username: <?php echo $this->session->userdata('username'); ?></p> Before I have logged in for the first time I can't reach the controller (as excpected) but as soon as I have logged in and out once I can reach the private controller. (Sometimes it redirect to the public controller as expected but its enough to refresh the page a couple of times and I can reach the private controller) It fells like my session is not destroyed properly? you can try the site here to see the sites live. Any ideas? |
Welcome Guest, Not a member yet? Register Sign In |