Skip to main content

Session Expired message showing for non-logged-in users (with FlyingPress cache)

Hello everyone,

I’m facing an issue with FluentCommunity on my WordPress site. On the homepage, non-logged-in visitors are seeing this message:

Session Expired
Your session has expired due to inactivity. Please refresh the page to continue.

This message should only appear for logged-in users when their session actually expires.

My setup:

  • FluentCommunity (latest version)
  • FlyingPress caching plugin enabled
  • CDN (FlyingCDN/Cloudflare) in front of the site

Problem:
It seems the β€œSession Expired” banner is being cached and then shown to logged-out users as well. This creates confusion because normal visitors should never see this message.

What I tried so far:

  • Clearing cache (FlyingPress + CDN) β†’ problem comes back.
  • Checked cookies β†’ non-logged-in users don’t have wordpress_logged_in_ but still see the cached banner.
  • Looked for a way to bypass cache based on cookies, but that might not be optimal.

Question:
πŸ‘‰ How can I ensure the β€œSession Expired” message only shows to logged-in users, and not cached for public visitors?

Any hooks, Bypass Cache for Cookies, filters, or recommended FlyingPress/FluentCommunity settings would be greatly appreciated.

Thanks in advance!

Session Expired message showing for non-logged-in users (with FlyingPress cache)

Shahjahan Jewel

Exclude caching for your portal URI as well as /wp-json/fluent-community/*
You don't need caching for community endpoints.

Arif Hossain

Shahjahan JewelΒ Thanks