Skip to content

Undertow session timeout is set incorrectly #11283

@FrontierPsychiatrist

Description

@FrontierPsychiatrist

Spring Boot Version: 2.0.0.M7

The new support for Duration objects in configuration classes broke the session timeout setting when using Undertow.

This change sets the timeout as minutes but Undertow interprets the number as seconds.

So setting

server:
  session:
    timeout: 120

will actually result in a 2 second timeout for session.

Workaround: Specify the wanted seconds as minutes:

server:
  session:
    timeout: 120m

Edit:
To observe this you can set

logging:
  level:
    io.undertow.session: TRACE

and watch the logs for session invalidation.

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions