Page MenuHomePhabricator

MediaWiki should log user out of all sessions when going to Special:Userlogout
Open, MediumPublic

Description

Currently in MediaWiki (but not when centralauth is installed), if you go to Special:Userlogout, it logs you out of your current session. It does not log you out of your other sessions.

CentralAuth on the other hand does log you out of all sessions (via changing the equivalent of user_token).

Its not 100% clear which is the most desirable behaviour. I personally lean towards the centralAuth behaviour. I think we should change vanilla mediawiki to be like CentralAuth.

If we want to keep vanilla mediawiki, at the very least there needs to be a button to log someone out of all sessions (Special:UserLogout/force ? Link from special:Preferences?)

Event Timeline

Tasks for MediaWiki-extensions-CentralAuth that desire the opposite to happen: T37220: Allow per-session log out and T51890: Logging out on a different device logs me out everywhere else.

I also recall a comment mentioning the behaviour for CentralAuth was not intended as a feature (but not exactly a bug either) but I can't find it. (T51890#3443693?, but contradicted by T51890#536298)

chasemp triaged this task as Medium priority.Dec 9 2019, 4:40 PM

​If we want to keep vanilla mediawiki, at the very least there needs to be a button to log someone out of all sessions (Special:UserLogout/force ? Link from special:Preferences?)

Currently the only way to achieve that is to change your password (or at least use the password change interface; I think providing the current value again as new value would work).