Session Timeout

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

Session Timeout

Post by axelseaa »

Our default php session time is 3 hours

Code: Select all

session.cache_expire = 180
However, we had a user complain that his session timeout after spending about an hour entering a post. Does serendipity handle this somewhere internally?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Session Timeout

Post by garvinhicking »

Serendipity does not set any session related timings and totally depends on the PHP configured limit. We only use session_start() and no other session options...

Best regards,
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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

lost posting

Post by d_cee »

Hi Garvin

I've had this same problem too. I've spent an hour or so entering a post and when I've gone to save it I got a message saying I'd entered a wrong user name or password. I found myself back at the log in page and lost all my hour's post.

Dave
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: lost posting

Post by garvinhicking »

Sadly, this is a problem hard to bypass with Serendipity or any PHP application.

Jay Bertrandt is working on an auto-save plugin which can autosave what you entered.

I can only give a tip to occasionally save long entrys in draft. You also do that when writing up longer word files, don't you? So you should apply that in a web-context as well: Save early, save often.

Once you are having the password problem, a little trick helps that works in mostly all web applications: When you get the mesage "Invalid username", Open another browser window or tab, login there, then go back to the original browser window and hit F5/Reload to re-post your entry which is still in the browser's cache.

Also, enabled the "Remember me" login functionality ensures that you can never loose a session!

Regards,
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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Re: lost posting

Post by d_cee »

Hi Garvin
garvinhicking wrote: I can only give a tip to occasionally save long entrys in draft. You also do that when writing up longer word files, don't you? So you should apply that in a web-context as well: Save early, save often.
I wish I was that organised. I've lost count of the number of times I've lost work through not saving as I go along :oops:

Dave
Post Reply