-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
leo你好
当服务端sessio过期时,此时用户停留在客户端登录后的页面。
这时当用户点击退出按钮时,报错
session_destroy(): Session object destruction failed
我的代码
$this->initCAS();
phpCAS::logoutWithRedirectService(route('welcome'));
当我试图用捕获错误的方法不终止代码运行,重定向到欢迎页
try{
$this->initCAS();
phpCAS::logoutWithRedirectService(route('welcome'));
info('cas成功登出');
return;
}catch(\Exception $e){
info('cas error');
info($e->getMessage());
}
return redirect()->route('welcome');
是否有个接口去判断服务端的session已经过期?之后在进行其他操作
Metadata
Metadata
Assignees
Labels
No labels
