Skip to content
Snippets Groups Projects
Commit 84949ebc authored by Andreas Fink's avatar Andreas Fink
Browse files

Bugfix session handling #6

parent 2d0e78c1
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,8 @@ class AuthRemoteuser extends MediaWiki\Session\ImmutableSessionProviderWithCooki
{
// Have a session ID?
$id = $this->getSessionIdFromCookie($request);
if (null === $id) {
// #6 assign a new sessionid if the id is null or if the session is no longer valid
if ((null === $id)||(!MediaWiki\Session\SessionManager::singleton()->getSessionById($id))) {
$username = $this->getRemoteUsername();
$sessionInfo = $this->newSessionForRequest($username, $request);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment