Back

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);
		
    }

Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us