• Resolved samhookerandcompany

    (@samhookerandcompany)


    I’m having trouble with page refresh after logging in. A user used to be able to enter username and password, then the page refreshed hiding the login fields and displaying members only content. Recently when you enter username and password the page does not reset/log in, nothing happens. I found if you manually click browser refresh the page displays correct content.

    try for yourself:
    user: test
    pass: test

    Any help would be great. Thanks!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • This looks like a browser caching issue. Your site is adding headers that tell the browser to cache the page, so after a user logs in the browser displays the cached page that still showed them logged out because their browser has already saved the page in that state. These headers could be coming from a caching plugin or from your web host.

    Thread Starter samhookerandcompany

    (@samhookerandcompany)

    I have disabled and removed all caching plugins and the problems still remains.

    Any other suggestions? or ways to force the page to reload.

    Have you talked to your web host about caching they might be adding?

    Thread Starter samhookerandcompany

    (@samhookerandcompany)

    My support ticket with SiteGround hosting:

    Zhorzh I.: This appears to be related to the members area plugin you’re using

    Sam Hooker: correct. according to plugin developer it’s the host caching the page

    Zhorzh I.: I’ve double-checked the errors logs on the server and there are no currently generated that would be causing this on a server-level

    Sam Hooker: ok sounds good. Thank you, I will be responding with this information.

    Zhorzh I.: The caching is currently flushed and there’s no caching that would be causing this

    Thread Starter samhookerandcompany

    (@samhookerandcompany)

    Zhorzh I.: This is indeed an issue with the plugin, I would recommend double checking with the provider to see if they have ongoing issues.

    I’m stuck in a customer support loop =/

    The expires header that’s being set on your server is the issue. This tells the browser to cache the page. See here: https://i.imgur.com/lTumoBZ.png

    See the “cache-control: max-age” and “expires” headers. Something on your server is setting these headers, so the browser is set up to cache the page until March 2020.

    Perhaps that screenshot is something you can send along to your host.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Page Refresh After Login’ is closed to new replies.