pombreda / gitit

Automatically exported from code.google.com/p/gitit
0 stars 0 forks source link

Saving changes should survive an intemediate login #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When saving while the session has expired, the changes will not be saved
after login.  I'd not expect the login form to forget about the changes I
made.  (This is especially annoying since the session times out pretty
fast, too fast for a long editting session at least ;)

Original issue reported on code.google.com by lemps...@gmail.com on 11 Dec 2008 at 9:23

GoogleCodeExporter commented 9 years ago
The problem you encountered is partially fixed in the latest release, 0.3.3.

In the previous version of gitit, the session timer started when the user 
logged in
and was never reset.  In 0.3.3, the session time is reset to one hour every 
time you
start editing a page. So, unless you spend more than an hour editing a
single page, you will not be logged off unexpectedly.

I think this is enough of a fix for now.  I thought a bit about how form data 
might
be made persistent between sessions, but this would be complex, and I'm not 
sure the
benefits are worth the cost.

Original comment by fiddloso...@gmail.com on 28 Dec 2008 at 8:34

GoogleCodeExporter commented 9 years ago
You could have some ajax polling every hour or so to maintain the session 
freshness

Original comment by zimb...@oree.ch on 2 Jan 2009 at 2:06

GoogleCodeExporter commented 9 years ago
A better suggestion, I think, would be the logged-out page could preserve the 
edited
text; then, when one is logged in and returned to the edit form, the edited text
could replace the editbox's default text.

Original comment by gwe...@gmail.com on 8 Jun 2009 at 9:00