Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

the session timeout is always 1800s #121

Open
zscsgit opened this issue Dec 3, 2019 · 3 comments
Open

the session timeout is always 1800s #121

zscsgit opened this issue Dec 3, 2019 · 3 comments

Comments

@zscsgit
Copy link

zscsgit commented Dec 3, 2019

Object maxInterval = sessionWrapper.getOrDefault(MAX_INTERVAL, this.maxInactiveInterval);

I found that the session timeout is always 1800s. Maybe it refers

@visweshwar
Copy link

@zscsgit there is a setter to override this value.

@eidottermihi
Copy link

The timeout can also be configured on @EnableMongoHttpSession/@EnableMongoWebSession, e.g.:

@EnableMongoWebSession(maxInactiveIntervalInSeconds = 1800)

@naridnevahgar
Copy link

naridnevahgar commented Sep 11, 2023

I had the same issue today. So, I am assuming its still not fixed.
I would like to clarify the direction of this fix though.

The JdkMongoSessionConverter class exposes a constructor with maxInactiveInterval duration field. Setting this field has no effect on the sessions created. Sessions are defaulted to PT30M this way.

@eidottermihi's solution works as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants