Page 1 of 1

Notification before being logged out automatically

Posted: Fri Jul 08, 2016 6:17 am
by schimanke
Hi there,

since updating to s9y 2 it happens very often that I get logged out automatically during writing a post. This is extremely annoying despite the auto-save feature because I have to start over writing huge parts of the post. Is there any chance that we can get a little notification or warning before being logged out automatically? This would really help a lot!

Best regards,
Flo

Re: Notification before being logged out automatically

Posted: Mon Jul 11, 2016 12:02 pm
by garvinhicking
Hi!

Did you try the "remember login" feature? I think this should be able to prevent the session based timeouts (those come from PHP actually), however you might need to save the entry twice because the first save might fail due to missing XSRF tokens.

HTH,
Garvin

Re: Notification before being logged out automatically

Posted: Mon Jul 11, 2016 12:34 pm
by schimanke
Thanks for the suggestion, Garvin. I'll give it a try.

Re: Notification before being logged out automatically

Posted: Mon Jul 11, 2016 7:41 pm
by onli
Garvin, shouldn't we be able to automatically prolong the session by making an ajax-request to serendipity each few seconds while the editor is open?

Re: Notification before being logged out automatically

Posted: Tue Jul 12, 2016 12:39 pm
by garvinhicking
onli wrote:Garvin, shouldn't we be able to automatically prolong the session by making an ajax-request to serendipity each few seconds while the editor is open?
Yes ;)