session - Auth::logout in laravel 5.2 is not working -


my question similar asked here

i using laravel 5.2

my route:list

route list

my logout link

<a href="logout" class="btn1 btn-1 btn1-1b">logout</a> 

the logout link in header.blade.php file. location of file

views->profile->header.blade.php 

my route.php

route::get('profile/logout', 'auth\authcontroller@getlogout'); 

this route out side of middleware

authcontroller.php

public function __construct() {      $this->middleware('guest', ['except' => ['logout', 'getlogout']]); } 

when logout button clicked redirect per requirement session not ending, still logged in if visit through url

since laravel 5.2, should add web middleware use session. try add web middleware in constructor or in route.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -