mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10023 from xini/fix-destroy-session-on-logout
This commit is contained in:
commit
507c70e2f5
@ -593,7 +593,7 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
|
||||
|
||||
/**
|
||||
* Remove the first occurrence of buttons
|
||||
* @param string|string[] $buttons,... An array of strings, or one or more strings. The button names to remove.
|
||||
* @param string|string[] $buttons,... An array of strings, or one or more strings. The button names to remove.
|
||||
*/
|
||||
public function removeButtons($buttons)
|
||||
{
|
||||
|
@ -112,6 +112,6 @@ class SessionAuthenticationHandler implements AuthenticationHandler
|
||||
public function logOut(HTTPRequest $request = null)
|
||||
{
|
||||
$request = $request ?: Controller::curr()->getRequest();
|
||||
$request->getSession()->restart($request);
|
||||
$request->getSession()->destroy();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user