Programmatic session timeout setting (applied through HttpSessionListener) [SPR-11585] #16209
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?