On Wed, Jul 16, 2014 at 8:46 AM, Jon Robson <[email protected]> wrote:
> This seems like a bit of an edge case. If you are worried about this
> then I would say you want to check the keep me logged in box...

For some of us power users, it will be an edge case we hit annoyingly
regularly.  I've found mediawiki logs me out despite the 'keep me
logged in' box, when logging out on a different device, etc.

Irrespective of that, instead of redirecting to Special:UserLogin, the
login box could appear, with the form submission being processed at
Special:UserLogin.  Crazy idea, I know, but lots of other software
does that.

Another approach, which IMO should be done as a fallback, is to use an
approach similar to 'action=edit&redlink=1' and 'redirect=no' to state
in the URL that the user doesnt want to login a second time, but would
like to be logged in and return to another page.  i.e.

https://en.wikipedia.org/w/index.php?title=Special:UserLogin&returnto=Special%3AWatchlist&skipifloggedin=1

If they reload that URL while logged in, it wont ask for login.

This would be similar to the API assert=bot/user logic.

http://www.mediawiki.org/wiki/API:Assert

-- 
John Vandenberg

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to