Class Session
java.lang.Object
org.springframework.boot.web.servlet.server.Session
Session properties.
- Since:
 - 2.0.0
 - Author:
 - Andy Wilkinson
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSession cookie properties.static enumAvailable session tracking modes (mirrorsSessionTrackingMode. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturn the directory used to store session data.Return thesession tracking modes.booleanReturn whether to persist session data between restarts.voidsetPersistent(boolean persistent) voidsetStoreDir(File storeDir) voidsetTimeout(Duration timeout) voidsetTrackingModes(Set<Session.SessionTrackingMode> trackingModes)  
- 
Constructor Details
- 
Session
public Session() 
 - 
 - 
Method Details
- 
getTimeout
 - 
setTimeout
 - 
getTrackingModes
Return thesession tracking modes.- Returns:
 - the session tracking modes
 
 - 
setTrackingModes
 - 
isPersistent
public boolean isPersistent()Return whether to persist session data between restarts.- Returns:
 trueto persist session data between restarts.
 - 
setPersistent
public void setPersistent(boolean persistent)  - 
getStoreDir
Return the directory used to store session data.- Returns:
 - the session data store directory
 
 - 
setStoreDir
 - 
getCookie
 
 -