Forum

Laravel 4.2 user do not logout randomly.

I am trying to logout with Auth::logout (), and it do not logout user randomly, most of time it logout successfully, but sometimes it just redirect to login page without logout. And when user try to login again it just shows token mismatch error.

public function logoutAction(){

        Auth::Logout();

        return Redirect::to($this->loginUrl);

    }
neerajkhatri123
neerajkhatri123
  • 2 weeks ago