Skip to content

Commit

Permalink
Bugfix session handling #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Fink committed Nov 7, 2016
1 parent 2d0e78c commit 84949eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AuthRemoteuser.body.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public function provideSessionInfo(WebRequest $request)
{
// 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);

Expand Down

0 comments on commit 84949eb

Please sign in to comment.