Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User session disconnected too often after upgrade #1711

Open
celeriev opened this issue Jan 15, 2025 · 2 comments
Open

User session disconnected too often after upgrade #1711

celeriev opened this issue Jan 15, 2025 · 2 comments
Labels
auth Pertaining to authentication. bug Something isn't working needs-triage

Comments

@celeriev
Copy link

celeriev commented Jan 15, 2025

I am hosting chainlit on a kubernetes (envoy+istio) server on 1 pod and connected to okta. But since I migrated to chainlit 2.0, users get disconnected every two hours. I also updated the config with increased timeout for the two config available:

# Duration (in seconds) during which the session is saved when the connection is lost
session_timeout = 3600  # 1 hour, but also tested running it with session_timeout = 28800, 8 hours without seeing improvements

# Duration (in seconds) of the user session expiry
user_session_timeout = 86400  # 1 day

I am not using sticky sessions for now.

Are there other configuration that I'm missing?

Copy link

dosubot bot commented Jan 15, 2025

I found a similar issue that might be helpful:

[1] Allow user session timeout to be configurable - This thread discusses the ability to configure user session timeouts, which may relate to your issue with frequent disconnections after the upgrade.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added auth Pertaining to authentication. bug Something isn't working labels Jan 15, 2025
@celeriev
Copy link
Author

I looked at the developer settings and the cookie expiration timestamp is set to the exact moment it was created, without additional time delta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Pertaining to authentication. bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant