Commit 84949ebc authored by Andreas Fink's avatar Andreas Fink
Browse files

Bugfix session handling #6

parent 2d0e78c1
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment