Reputation: 1984
Can these properties used to disable the session mechanism completely?
server.session.persistent=false
server.session.timeout=0
If not, how to do this?
Upvotes: 11
Views: 6133
Reputation: 600
had success with setting it to an empty set: server.servlet.session.tracking-modes=
@see https://docs.spring.io/spring-boot/docs/2.2.0.RELEASE/reference/htmlsingle/#server-properties
Upvotes: 2
Reputation: 151
try type in application.properties:
spring.session.store-type=none
...to disable spring session
See: https://docs.spring.io/spring-boot/docs/2.2.0.RELEASE/reference/htmlsingle/#boot-features-session
Upvotes: 1
Reputation: 2750
A couple of notes for posterity:
Upvotes: -1