Problems on logout
jammersonf opened this issue · 4 comments
jammersonf commented
I'm having trouble logout user.
I try to use Auth::logout(); or Auth::coach()->logout(). it passes through the code but still logged User
(Sorry for bad english)
jammersonf commented
could repair.
thanks!
chhumsina commented
Hi @jammersonf
I have faced this problem. Could you guide me this tip?
Thanks you.
jammersonf commented
I don't remember what was happening exactly, this way is solved. Also check the routes and filters.
public function getLogout()
{
Auth::coach()->logout();
Auth::user()->logout();
Session::flush();
return Redirect::to('/login');
}
chhumsina commented
Thanks you so much :)