if (!\Auth\Auth::check()) {
\Auth\Auth::logout();
\Response::redirect('login/loginform');
}
Harro Verton wrote on Sunday 11th of September 2011:Must be a logic error in your driver, there is no logic in the Auth interface or the generic login driver that deals with login/logout state. How do you set the login state? Maybe a cookie or session issue?
public function perform_check()
{
$username = \Session::get('user');
$login_hash = \Session::get('login_hash');
if (is_null($this->user) or ($this->user[\Config::get('username')] != $username and $this->user != static::$guest_login))
{
$this->user = \DB::select()
->where(\Config::get('username'), '=', $username)
->from(static::$table_name)
->execute()->current();
}
if ($this->user and $this->user['login_hash'] === $login_hash)
{
return true;
}
$this->user = \Config::get('guest_login', true) ? static::$guest_login : false;
\Session::delete('username');
\Session::delete('login_hash');
return false;
}
It looks like you're new here. If you want to get involved, click one of these buttons!