A user reports a recurring issue in a self-hosted Discourse instance (version 3.5.0.beta1) where a “You were logged out” popup appears during search operations in production, but not in development or staging. The problem occurs after logging in via SSO, and the user suspects the _forum_session cookie is not being updated properly, leading to session mismatches. The community suggests checking if the issue is related to a known problem discussed here and recommends updating to the latest version (3.5.0.beta8-dev) to resolve potential bugs and security vulnerabilities. The user confirms the issue is environment-specific, ruling out version differences, and seeks further insight into why the session cookie update fails in production.
I’m currently running a self-hosted Discourse instance within our infrastructure.
Everything works fine up to the point of logging in via the Discourse SSO Connect method (we use our own custom account server for authentication).
However, we’re encountering an issue where, during a search operation, a “You were logged out” popup appears randomly.
This only happens in the production environment — not in development or staging.
We haven’t modified any of the Discourse open source code.
Our assumption is that the _forum_session cookie is supposed to be updated with each API call, but for some reason, this update fails in production. As a result, the current session cookie becomes invalid and leads to a logout.
If anyone has experienced a similar issue or has insights into what’s going on, I’d really appreciate your help.
אשמח להבין באילו מקרים עדכון ה-forum_session עלול להיכשל. ממה שאני מבין, הוא מתעדכן בכל פעם שאני נכנס לדף דרך כותרת Set-Cookie בתגובה. לא שינינו שום לוגיקה קשורה, כך שאיני בטוח מדוע הוא מדי פעם אינו מתעדכן.
זה קצת מוזר — אנחנו מריצים שלוש סביבות עם אותה גרסה (3.5.0.beta1), אבל הבעיה הזו מתרחשת רק בסביבת הייצור. שתי הסביבות האחרות (פיתוח ו-staging) עובדות כשורה, אז אני לא חושב שזו בעיה הקשורה לגרסה.
אני תוהה, האם זו הפעם הראשונה שהבעיה הזו דווחה? האם היו דיווחים דומים בעבר?