Welcome Guest, Not a member yet? Register   Sign In
Login form and back button
#1

[eluser]Mimi kesini[/eluser]
need help... :'(

I've tried using the sessions class, add the session data in the database and I added a header in the view but the results still, I can access the previous page by pressing the back button.

my controller
Code:
$data = array(
        'Username' => $this->input->post('Username'),
        'is_logged_in' => true );
$this->session->set_userdata($data);

my view header
Code:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0" />
<meta http-equiv="pragma" content="no-cache" />

my logout function
Code:
function logout()
{    
   $data = array($this->session->unset_userdata('Username'),  
                 $this->session->unset_userdata('is_logged_in'));
   $this->session->sess_destroy($data);
   redirect('login','refresh');
}

I use mozilla as a browser


Thank you... Smile


Messages In This Thread
Login form and back button - by El Forum - 01-07-2011, 02:55 AM
Login form and back button - by El Forum - 01-07-2011, 05:27 AM
Login form and back button - by El Forum - 01-07-2011, 06:29 AM
Login form and back button - by El Forum - 01-07-2011, 06:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB