[eluser]Unknown[/eluser]
I use the Aauth lib for Authentication and other things, but when I try to log me off the session isn't destroyed :/
Login Controller:
Code:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->Helper("password");
}
public function index()
{
$this->load->view('includes/header');
$this->load->view('signin');
$this->load->view('includes/footer');
}
public function login()
{
if($_REQUEST["remember_login"] == "true")
{
if($this->aauth->login(strtolower($_REQUEST["email"]), $_REQUEST["password"], true)==true) header("Location: ".base_url()."index.php/dashboard");
}
else
{
$this->aauth->login(strtolower($_REQUEST["email"]), $_REQUEST["password"], false);
}
}
public function logout()
{
$this->aauth->logout();
#redirect('/'.random_string(), 'refresh');
}
}
/* End of file login.php */
/* Location: ./application/controllers/Login.php */
I logged me off on /login/logout and the session is destroyed after i visit /login there is a new session and im logged in.
any solution to fix that?
Stackoverflow link:
http://stackoverflow.com/questions/22280...et-session