You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extensions works pretty great, but there was an issue I was having when I would access the site from other PCs or after leaving the browser idle until the session is no longer valid.
Instead of logging in automatically it would go to the page asking to login, at that point if I refresh or click another link, the extension works normally. This annoyed me greatly so I did a bunch of digging and found a fix.
In the provideSessionInfo function of AuthRemoteuser.body.php if you change this line:
if (null === $id) {
into
if ((null === $id)||(!MediaWiki\Session\SessionManager::singleton()->getSessionById($id))) {
It will assign a new sessionid if the id is null or if the session is no longer valid, which means no more annoying login page.
The text was updated successfully, but these errors were encountered:
fnk
pushed a commit
that referenced
this issue
Nov 7, 2016
This extensions works pretty great, but there was an issue I was having when I would access the site from other PCs or after leaving the browser idle until the session is no longer valid.
Instead of logging in automatically it would go to the page asking to login, at that point if I refresh or click another link, the extension works normally. This annoyed me greatly so I did a bunch of digging and found a fix.
In the provideSessionInfo function of AuthRemoteuser.body.php if you change this line:
if (null === $id) {
into
if ((null === $id)||(!MediaWiki\Session\SessionManager::singleton()->getSessionById($id))) {
It will assign a new sessionid if the id is null or if the session is no longer valid, which means no more annoying login page.
The text was updated successfully, but these errors were encountered: