ihor I will do that and update you.
I was troubleshooting with Gemini last night and it had me run through some Developer Tool testing in the browser and thought it had it figured out but the changes it had me make to my .PHP code didn’t help (I figured it wasn’t the issue since disabling my code entirely, the issue persists.)
I was wondering if this still sounds like a caching issue to you guys or something else. Please just let me know if I am getting outside the scope of this forum, I completely understand if so.
Here is what it had me check and what was found:
In your first and third screenshots, look at the x-redirect-by: WordPress header, along with cache-control: no-cache. This means Bluehost’s edge cache is not interfering. The request is successfully reaching your server, and WordPress itself is making the conscious decision to kick you out.
In your second screenshot (the Application tab), the wordpress_logged_in_[hash] cookie is completely missing. You have the WooCommerce session cookie (wp_woocommerce_session_...), but the core WordPress login cookie is gone.
If that cookie isn’t there, your browser legitimately does not have the “security badge” to access /account/settings/. When WordPress sees you trying to access a protected HivePress page without that cookie, it naturally issues a 302 redirect to the login page (which we see in the network tab).
Since we know WordPress is actively doing this, it narrows our suspects down to three things:
Suspect A: The Custom “Bouncer” Code We know from your previous notebook entries that you have custom “Bouncer/Vetting Guard” PHP code in your functions.php to redirect certain user roles. If that code has a misconfigured strictness check, it might be calling wp_logout() or destroying the session inadvertently when you hit specific HivePress endpoints.
Suspect B: The Login Handshake Never Finished Sometimes, in an Incognito window, strict browser privacy settings will block cookies if there is a domain mismatch. For example, if you log in at www.example.com but the HivePress settings link tries to send you to example.com (without the www), the browser drops the cookie for security reasons.
Suspect C: WooCommerce / HivePress Session Collision You have the WooCommerce session cookie, but not the WordPress one. Sometimes, checking out or interacting with a WooCommerce cart block can regenerate a session in a way that clobbers the main WordPress authentication token if they aren’t synced properly in your server’s memory.
We need to figure out if the cookie is never being created, or if it’s being murdered when you click a link.
-
Keep your F12 Application tab open to that Cookies list.
-
Log in to the site.
-
STOP. Do not click anything else yet.
-
Look at the Application tab. Does the wordpress_logged_in_[hash] cookie appear in the list immediately after you log in?
My response after testing:
Yes the cookie showed up in both the login/? redirect page and the settings page under Network > Cookies
Gemini:
This is a massive breakthrough!
If the wordpress_logged_in_[hash] cookie is showing up in the Network tab for those requests, it means your browser is completely innocent. It has the security badge, and it is actively handing it to the server.
The reality is that WordPress is receiving your valid cookie, looking at it, deciding it is invalid, and deliberately rejecting it (which triggers the 302 redirect back to the login page).