Logged out while typing?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
FF
Regular
Posts: 18
Joined: Fri Feb 02, 2007 11:56 pm

Logged out while typing?

Post by FF »

After writing for over half an hour my wife wanted to submit her text to our log.
She clicked the button and got a message that here username or password was wrong and had to re-enter them.

She did and the complete entry was gone. Going back in the browser (Firefox) didn't help.

What could have caused this?
She didn't log out and didn't clear here cache/cookies.
I can't find anything about maximum connection time in the settings (as far as I know, there isn't any).

And is there any way to recover her entry. Of course she doesn't like this at all.

Greetings Jeroen
(http://www.ff.fm/hummeltje/)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Logged out while typing?

Post by garvinhicking »

Hi!

This "feature" is called PHP session timeout. It happens after a period of time configured in PHP.ini (i.e. by your server admin). Typically this timeout is set to 20 minutes.

All PHP applications loose their "memory" after that time you haven't written anything.

There are 3 possibilities to circumvent this problem:

1. Save early, save often.

2. Use the 'autosave' serendipity plugin. It might not work with all WYSIWYG editors, though.

3. If you save an entry and get the error, DO NOT LOG IN on the page where it prompts you to. Instead, open a new browser window/tab, login there, then return to the old Window and hit "F5". This will resubmit your entry posting data to the browser, WITHOUT loosing your original data.

There is no way to recover her old entry. it was only existing within the browser and has not been processed at the server side.

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/
FF
Regular
Posts: 18
Joined: Fri Feb 02, 2007 11:56 pm

Re: Logged out while typing?

Post by FF »

I completely forgot to post a reply, sorry for that :oops:
garvinhicking wrote: 2. Use the 'autosave' serendipity plugin. It might not work with all WYSIWYG editors, though.


This works great.
Thank you for the pointer.

:)
Post Reply