Support » Plugin: Restrict Content » Page Refresh After Login

  • 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)
  • Plugin Author NoseGraze

    (@nosegraze)

    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.

    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.

    Plugin Author NoseGraze

    (@nosegraze)

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

    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

    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 =/

    Plugin Author NoseGraze

    (@nosegraze)

    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)
  • You must be logged in to reply to this topic.