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

Programmatic session timeout setting (applied through HttpSessionListener) [SPR-11585] #16209

Closed
spring-projects-issues opened this issue Mar 20, 2014 · 4 comments

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Mar 20, 2014

Prashant Deva opened SPR-11585 and commented

for all the talk about not needing a web.xml, there is no way to set the session-timeout value currently in the javaconfig...


Affects: 4.0.2

0 votes, 5 watchers

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Mar 20, 2014

Stéphane Nicoll commented

The servlet spec does not allow you to change that value programmatically even if you can workaround that by setting the timeout every time a session is created. See for instance this thread

What would you expect the Spring framework to do if the servlet spec does not support it?

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Mar 20, 2014

Prashant Deva commented

why cant spring use an approach similar to the one described in the stack overflow answer and implement it in java code behind the scenes

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Sep 10, 2015

Phil Webb commented

FYI Spring Boot offers a server.session.timeout property that can be used with embedded servers.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Sep 11, 2015

Rossen Stoyanchev commented

Good point. Spring Boot seems like the right (and only feasible) place to address this. Specific suggestions otherwise welcome but I don't see any references to a specific SO thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant