Notification before being logged out automatically

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

Notification before being logged out automatically

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Notification before being logged out automatically

Post 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
# 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 4:38 pm
Location: Hameln, Germany
Contact:

Re: Notification before being logged out automatically

Post by schimanke »

Thanks for the suggestion, Garvin. I'll give it a try.
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Notification before being logged out automatically

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Notification before being logged out automatically

Post 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 ;)
# 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