org.springframework.boot.web.servlet.server

Class Session

  • java.lang.Object
    • org.springframework.boot.web.servlet.server.Session


  • public class Session
    extends java.lang.Object
    Session properties.
    Since:
    2.0.0
    • Constructor Detail

      • Session

        public Session()
    • Method Detail

      • getTimeout

        public java.time.Duration getTimeout()
      • setTimeout

        public void setTimeout(java.time.Duration timeout)
      • isPersistent

        public boolean isPersistent()
        Return whether to persist session data between restarts.
        Returns:
        true to persist session data between restarts.
      • setPersistent

        public void setPersistent(boolean persistent)
      • getStoreDir

        public java.io.File getStoreDir()
        Return the directory used to store session data.
        Returns:
        the session data store directory
      • setStoreDir

        public void setStoreDir(java.io.File storeDir)