[GH-ISSUE #866] Make session expiration check configurable #214

Closed
opened 2026-03-07 20:46:17 +03:00 by kerem · 8 comments
Owner

Originally created by @JDarDagran on GitHub (May 27, 2022).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/866

Is your feature request related to a problem? Please describe.
I'm keeping CloudBeaver session cookies behind reversed proxy. Therefore browser does not keep cookies. This results in session expired warnings.

Describe the solution you'd like
I'd like to set POLL_INTERVAL to be configurable from config

github.com/dbeaver/cloudbeaver@fac1d3954d/webapp/packages/core-app/src/shared/SessionExpireWarningDialog/SessionExpireWarningDialogService.ts (L19)

or to have session expired configurable to be turned off.

Originally created by @JDarDagran on GitHub (May 27, 2022). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/866 **Is your feature request related to a problem? Please describe.** I'm keeping CloudBeaver session cookies behind reversed proxy. Therefore browser does not keep cookies. This results in session expired warnings. **Describe the solution you'd like** I'd like to set POLL_INTERVAL to be configurable from config https://github.com/dbeaver/cloudbeaver/blob/fac1d3954d6a648601a9f728236769d8c5739cc9/webapp/packages/core-app/src/shared/SessionExpireWarningDialog/SessionExpireWarningDialogService.ts#L19 or to have session expired configurable to be turned off.
kerem closed this issue 2026-03-07 20:46:17 +03:00
Author
Owner

@kseniiaguzeeva commented on GitHub (Jun 1, 2022):

Reverse proxy doesn't affect the session expiration time. Could you please try to configure it also in .cloudbeaver,runtime.conf (expireSessionAfterPeriod)?

<!-- gh-comment-id:1143246186 --> @kseniiaguzeeva commented on GitHub (Jun 1, 2022): Reverse proxy doesn't affect the session expiration time. Could you please try to configure it also in `.cloudbeaver,runtime.conf` (`expireSessionAfterPeriod`)?
Author
Owner

@JDarDagran commented on GitHub (Jun 1, 2022):

I have this configured to 1800000, still this does not help. The issue is that the browser does not have any CloudBeaver cookie and looking at the code of SessionExpireWarningDialogService if there's no cookie github.com/dbeaver/cloudbeaver@fac1d3954d/webapp/packages/core-app/src/shared/SessionExpireWarningDialog/SessionExpireWarningDialogService.ts (L56)

it will treat it as session expired.

<!-- gh-comment-id:1143271460 --> @JDarDagran commented on GitHub (Jun 1, 2022): I have this configured to 1800000, still this does not help. The issue is that the browser does not have any CloudBeaver cookie and looking at the code of `SessionExpireWarningDialogService` if there's no cookie https://github.com/dbeaver/cloudbeaver/blob/fac1d3954d6a648601a9f728236769d8c5739cc9/webapp/packages/core-app/src/shared/SessionExpireWarningDialog/SessionExpireWarningDialogService.ts#L56 it will treat it as session expired.
Author
Owner

@JDarDagran commented on GitHub (Jun 6, 2022):

@kseniiaguzeeva do you think it's feasible to add as a feature?

<!-- gh-comment-id:1147149557 --> @JDarDagran commented on GitHub (Jun 6, 2022): @kseniiaguzeeva do you think it's feasible to add as a feature?
Author
Owner

@Wroud commented on GitHub (Jun 6, 2022):

Hi, can you check if you have cb-session-id cookie please. If you don't have it, it's probably some issue with setting cookies in browser, it can be related to browser / nginx settings.

<!-- gh-comment-id:1147160579 --> @Wroud commented on GitHub (Jun 6, 2022): Hi, can you check if you have `cb-session-id` cookie please. If you don't have it, it's probably some issue with setting cookies in browser, it can be related to browser / nginx settings.
Author
Owner

@JDarDagran commented on GitHub (Jun 6, 2022):

I'm probably misunderstood. The browser does not keep cookies, it's forced per design we have as a workaround. Proxy stores cookies and attaches it back to CloudBeaver.
The question is if it would be possible to add what I asked for in the issue.

<!-- gh-comment-id:1147170324 --> @JDarDagran commented on GitHub (Jun 6, 2022): I'm probably misunderstood. The browser does not keep cookies, it's forced per design we have as a workaround. Proxy stores cookies and attaches it back to CloudBeaver. The question is if it would be possible to add what I asked for in the issue.
Author
Owner

@Wroud commented on GitHub (Jun 6, 2022):

I see, we can make session expire mechanism configurable

<!-- gh-comment-id:1147172751 --> @Wroud commented on GitHub (Jun 6, 2022): I see, we can make session expire mechanism configurable
Author
Owner

@JDarDagran commented on GitHub (Jun 6, 2022):

That's great, thank you!

<!-- gh-comment-id:1147175015 --> @JDarDagran commented on GitHub (Jun 6, 2022): That's great, thank you!
Author
Owner

@devnaumov commented on GitHub (Jul 7, 2022):

We've added the new parameter "core.cookies.disabled" to the config in the 22.1.1 release. It will allow you to disable polling functionality.
Also, we are planning to rethink the Session Expired behavior in the 22.1.3 release so it doesn't depend on the specific cookies.

<!-- gh-comment-id:1177608654 --> @devnaumov commented on GitHub (Jul 7, 2022): We've added the new parameter "core.cookies.disabled" to the [config](https://github.com/dbeaver/cloudbeaver/wiki/Product-configuration-parameters) in the 22.1.1 release. It will allow you to disable polling functionality. Also, we are planning to rethink the Session Expired behavior in the 22.1.3 release so it doesn't depend on the specific cookies.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#214
No description provided.