【发布时间】:2016-05-16 14:14:49
【问题描述】:
我的问题与here提出的问题非常相似
我正在使用 Laravel 5.2
我的路线:列表
我的退出链接
<a href="logout" class="btn1 btn-1 btn1-1b">Logout</a>
注销链接在 header.blade.php 文件中。文件的位置是
Views->profile->header.blade.php
我的路由.php
Route::get('profile/logout', 'Auth\AuthController@getLogout');
此路由在中间件之外
AuthController.php
public function __construct()
{
$this->middleware('guest', ['except' => ['logout', 'getLogout']]);
}
当注销按钮根据会话要求单击其重定向时,并没有结束,因为如果我通过 URL 访问,我仍然处于登录状态
【问题讨论】:
-
如果通过 url 访问什么仍然登录?
-
www.mydomainname.com/profile/create
标签: session authentication controller laravel-5.2