Welcome Guest, Not a member yet? Register   Sign In
Session Issue
#1

[eluser]Wondering Coder[/eluser]
I have an issue in using session.

First of all I'm using DB session in CI and I have 2 panels which are the client/user panel and admin panel. Now my scenario is when I am currently logged in my client panel then try to go to my admin panel without logging out first in my client panel. I am able to view the content of my admin panel using the session cookie of the client user.

Code:
public function is_logged_in()
    {
        $is_logged_in = $this->session->userdata('is_logged_in');
        if(!isset($is_logged_in) || $is_logged_in != true)
        {
            echo 'You don\'t have permission to access this page. <a href="../">Login</a>';    
            die();        
            
        }        
    }

Any idea on how to solve this? or secure my application.


Messages In This Thread
Session Issue - by El Forum - 06-03-2011, 01:47 PM
Session Issue - by El Forum - 06-03-2011, 02:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB