Page 1 of 1

Logged out while typing?

Posted: Sat Apr 21, 2007 11:23 pm
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/)

Re: Logged out while typing?

Posted: Sun Apr 22, 2007 12:44 pm
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

Re: Logged out while typing?

Posted: Fri May 18, 2007 7:01 pm
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.

:)