Notification before being logged out automatically

Discussion corner for Developers of Serendipity.
Post Reply
schimanke
Regular
Posts: 161
Joined: Mon Jan 07, 2008 5:38 pm
Location: Hameln, Germany
Contact:

Notification before being logged out automatically

Post by schimanke » Fri Jul 08, 2016 6:17 am

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Notification before being logged out automatically

Post by garvinhicking » Mon Jul 11, 2016 12:02 pm

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

schimanke
Regular
Posts: 161
Joined: Mon Jan 07, 2008 5:38 pm
Location: Hameln, Germany
Contact:

Re: Notification before being logged out automatically

Post by schimanke » Mon Jul 11, 2016 12:34 pm

Thanks for the suggestion, Garvin. I'll give it a try.

User avatar
onli
Regular
Posts: 2254
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Notification before being logged out automatically

Post by onli » Mon Jul 11, 2016 7:41 pm

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?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Notification before being logged out automatically

Post by garvinhicking » Tue Jul 12, 2016 12:39 pm

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 ;)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply