• Hello all,

    I’ve been having this issue on a new WordPress site. I can login without any issues, however, when I try to submite a post I am taken to a login screen again. Then I get caught in a loop of loging in and attempting to post. If I can do it fast enough (less than 8 seconds), I am able to eventually make the post. Otherwise I am taken to a page that says “Are you sure you want to do that?” If I am writing a post and change tabs, even for only an instant, I am told that my session has expired and that I need to login again. Checking the “Remember Me” option doesn’t change anything. I have searched the forums for answers several times, nothing does the trick.

    Here are things that I have tried:

    1. Changing the WordPress Address (URL) and Site Address (URL) from an IP Address to https://site.com and then to https://www.site.com
    2. Clearing cache and cookes
    3. Verifying that cookies are enabled
    4. Verifying that Chrome can see the cookies, it can and I can see when they are created. When I wait for a moment, then refresh, the cookie gets deleted.
    5. Tried different browsers: Chrome, FireFox, IE
    6. Reformatted the server, installed WordPress fresh, and reinstalled theme.
    7. Disabled all plugins
    8. Installed plugin that changes timeout
    9. Tried different theme
    10. Tried editing several WordPress config files
    11. Tried using patches from the forum

    I promise that I have searched the forums for answers as much as I could. I found several articles that had people with similar issues. Most tell you to change the URL info in General Settings, this did not solve my issue.

    One post I read was here if you go to page two @xilinxchic had the same issue, but the topic was closed before she was answered. I may have the same issue.

    If it helps, I am running WordPress 4.1.1 on DigitalOcean (LAMP Ubuntu 14.0 WordPress image) The only changes made to the config files there was that I commented out that block where it makes the admin page a restricted area. You can read about that here (see: Removing the Additional Apache Password Prompt for Admin Areas.)

    I am fine with anything that solves this issue, hack or not.

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter danielgauldin

    (@danielgauldin)

    Update

    I did notice the following things about cookies:

    • Cookies are created without an expiration date, meaning that they expire when the session ends.
    • Editing that cookie to another date does not stop WordPress from removing it
    • The cookie is removed when trying to go from the site back to the Admin page, even if only for a second

    Don’t know if this helps, but it seems that the issue is related to WordPress considering the cookie expired, no matter what the date is.

    Thanks again!

Viewing 1 replies (of 1 total)
  • The topic ‘Sessions Expire Almost Instantly’ is closed to new replies.