mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #10023 from xini/fix-destroy-session-on-logout
This commit is contained in:
commit
507c70e2f5
@ -112,6 +112,6 @@ class SessionAuthenticationHandler implements AuthenticationHandler
|
|||||||
public function logOut(HTTPRequest $request = null)
|
public function logOut(HTTPRequest $request = null)
|
||||||
{
|
{
|
||||||
$request = $request ?: Controller::curr()->getRequest();
|
$request = $request ?: Controller::curr()->getRequest();
|
||||||
$request->getSession()->restart($request);
|
$request->getSession()->destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user