Last modified: 2014-09-03 14:57:44 UTC
Not sure if we can do anything about this, but: with the normal wiki process it goes article - edit window - save. It's really easy to tell if you get coincidentally logged-out as you're trying to edit, because they're all different pages and so the interface changes. With Flow, article and edit window are the same page; you can get logged-out while reading and leave a comment without the interface warning you. I'm not sure if there's anything we can do about that, but is there any way we could display a warning? The alternative is a potential increase to OS work of unknown amount.
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/640, but people from the community are welcome to contribute here and in Gerrit.
For the case of "I'm logged in, so interface shows my name; but I take too long - then submit and apparently was no longer logged in (session expired)": When submitting the post, we could fetch user id from JS (mw.config.get( 'wgUserId' )), submit it along with the post content being submitted. When validating post submission, we can check if against request context user. If they don't match, we can respond with an error (similar to edit conflict) to inform the user they're no longer logged in. They could then either submit anyway, or copy the content, log in again, and re-submit. Just one idea.
(In reply to comment #2) > For the case of "I'm logged in, so interface shows my name; but I take too > long > - then submit and apparently was no longer logged in (session expired)": > > When submitting the post, we could fetch user id from JS (mw.config.get( > 'wgUserId' )), submit it along with the post content being submitted. When > validating post submission, we can check if against request context user. If > they don't match, we can respond with an error (similar to edit conflict) to > inform the user they're no longer logged in. They could then either submit > anyway, or copy the content, log in again, and re-submit. > > Just one idea. +1