Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable session on embedded http server

Can these properties used to disable the session mechanism completely?

server.session.persistent=false
server.session.timeout=0

If not, how to do this?

like image 714
CelinHC Avatar asked Jan 26 '16 12:01

CelinHC


1 Answers

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

@see https://docs.spring.io/spring-boot/2.2.0.RELEASE/current/api/org/springframework/boot/web/servlet/server/Session.html#setTrackingModes-java.util.Set-

like image 162
166_MMX Avatar answered Oct 14 '22 10:10

166_MMX