#124 Retain post for when logged out during composition

closed-fixed
nabber00
Posting (28)
7
2010-11-08
2006-01-19
Anonymous
No

It would be good if, instead of losing the post once a
submission occurs when a logout has happened (without
bloggers knowledge) you are either redirected to a page
which gave you the opportunity to log in again and post
the entry, or if the entry text was in some other way
retained.

I find that even with the 5 day login time, every so
often I find that I have been logged out during the
time I am composing a post. Several others have
reported this behaviour. The ability to not have posts
destroyed when this occurs would be valuable.

spleenfeeder@gmail.com

Discussion

  • nabber00
    nabber00
    2010-08-15

    • labels: 626488 -->
    • priority: 5 --> 7
    • assigned_to: nobody --> nabber00
     
  • nabber00
    nabber00
    2010-08-15

    The software should not lose a post if a user is logged out.

     
  • nabber00
    nabber00
    2010-08-15

    • status: open --> open-accepted
     
  • nabber00
    nabber00
    2010-08-15

    I suspect the premature logouts could be related to the login/logout functions, see ID: 3045510.

     
  • nabber00
    nabber00
    2010-08-15

    I think the logout time is actually based on session.gc_maxlifetime (php.ini setting) and that is why the 5 day login isn't working. The default value is 1440 or 24 minutes. So if you take more than 24 minutes to preview or post your content, you will be logged out and lose it.

    Temporary fix: Set your session.gc_maxlifetime to something bigger.

     
  • nabber00
    nabber00
    2010-08-15

    I checked a fix for this into svn r49. You won't get logged out until 5 days now. This needs to remain open because if your IP address changes you will still get logged out before you can post, regardless of the time.

     
  • nabber00
    nabber00
    2010-11-08

    This has been fixed in svn r133. When using the Preview or Post buttons and not logged in, your draft will be stored and you will be redirected to the login page. Once you login you will be presented with a link to restore the draft.

    For those interested your draft is stored in a cookie on the system, so as long as you keep your browser open this trick will work, even if your network connection (IP address) changes.

     
  • nabber00
    nabber00
    2010-11-08

    • milestone: --> Major Bug (do not use)
    • labels: --> Posting
    • status: open-accepted --> closed-fixed