• Resolved wabetainfo

    (@wabetainfo)


    Hi,
    I would like to report a bug that occurs when the WordPress admin session expires.

    Let’s assume you are in the WordPress admin panel, on any page (for example, on the post creation screen or the installed plugins page). If you manually refresh the page and your WordPress admin session just expired, you will be redirected to the 404 page. At this point, you can log back into the admin panel using your credentials. However, if you return to the page you refreshed earlier, you will be redirected to the 404 page again, even though you are still logged in.

    To temporarily resolve this issue, I need to add a random parameter (for example, &test=1) to the URL to view the page again. After some time (possibly two hours or a little more), I can access that page without being redirected to the 404 page and without needing to add the additional random parameter.

    It’s important to note that I use the latest version available (1.9.17.1). In addition, I tried to resolve the issue without adding any random parameter. For example, I cleared the cache and logged out again, but this did not solve the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    Thanks for using WPS Hide Login.

    Did you exclude wp-admin and wp-login pages from cache ?

    Thread Starter wabetainfo

    (@wabetainfo)

    Hi @seinomedia
    Thanks for your answer.

    Sure! I previously ran different tests to ensure those pages were excluded from the cache. By default, they’re already excluded for logged-in users, but I remember double-checking and manually excluding them as well. Despite that, the issue persisted.

    I also disabled the plugins responsible for both page caching and object caching, cleared the cache on Cloudflare (even though it’s unnecessary since Cloudflare doesn’t cache admin pages by default for security reasons, but I gave it a try), and cleared the Varnish cache. Additionally, I tested accessing the admin pages using the browser’s incognito mode.

    I understand it’s easy to assume that this issue is caused by the cache as adding a parameter fixes the issue (since changing parameters can generate a different version of the page), but I still can’t figure out the cause…

    Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    It’s “easy” because it’s logical. A query string (https://mysite.com/?querystring, for example) disables all caches and you say the issue disappears with this kind of URL.

    There are many levels of cache (browser, WordPress, Cloudflare, server…). Doing tests isn’t a proof. You cache plugin should have this kind of settings. You should set it in Cloudflare too.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Persistent 404 redirection after WordPress admin session expiry’ is closed to new replies.