Random admin session logouts
-
Random admin session logouts — confirmed caused by Wordfence, cause not yet iden
Hi,We’re experiencing random, unpredictable logouts from wp-admin on our site (webhostmg.com) — no consistent pattern, happens during normal navigation with no specific trigger identified.
What we’ve confirmed through testing:
- Disabling the Wordfence plugin entirely stops the logouts completely — tested this twice, reproducible both times
- Re-enabling Wordfence brings the logouts back
- Our site sits behind Cloudflare
- We tried changing Wordfence → All Options → “How does Wordfence get IPs” from the default auto-detection to the Cloudflare-specific option (“Use the Cloudflare CF-Connecting-IP HTTP header”) — this did not resolve the issue
Additional context that may be relevant:
- We also run a WordPress staging environment at a subdirectory on the same domain (
/staging/) — a full clone of the site’s database (different table prefix) and files, with its own separatesiteurl. Wordfence is active on this staging copy too (since plugin files are cloned along with everything else). Logging into the staging site’s wp-admin exhibits a similar symptom — the login form submits, but redirects back to the same login screen with no error shown, rather than reaching the dashboard. - We checked Wordfence → Firewall → Blocking — no active IP blocks
- We checked Rate Limiting — set to “Unlimited” across all categories
- We checked Brute Force Protection settings — nothing unusual, lockout thresholds are generous (10 failures)
- We checked Login Security / 2FA — 2FA is set to “Optional” for our role, not enforced
- We checked Live Traffic around the time of logouts — nothing shows as blocked; all our own traffic shows as “Human,” none flagged
What we’re hoping to find out:
Given disabling Wordfence entirely resolves it, there’s clearly something in Wordfence’s session/cookie handling causing this — we just haven’t been able to isolate the specific setting through the checks above. Could you help us identify what mechanism might cause this, especially given the Cloudflare + staging-subdirectory setup?Happy to provide diagnostic exports, server details, or anything else needed.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.