session_start();
session_destroy(); #Destroys all data registered to a session
setcookie(session_name() , "", time()-3600);
$_SESSION = array();
//重定位 Slim3
return $response->withHeader('Location' , './' ) ;
session_start();
session_destroy(); #Destroys all data registered to a session
setcookie(session_name() , "", time()-3600);
$_SESSION = array();
//重定位 Slim3
return $response->withHeader('Location' , './' ) ;
本文标题:php Logout 设置session 和 cookie 的方
本文链接:https://www.haomeiwen.com/subject/xkqjattx.html
网友评论