Class DefaultSessionCloseStrategy

java.lang.Object
de.hybris.platform.servicelayer.web.DefaultSessionCloseStrategy
All Implemented Interfaces:
SessionCloseStrategy
Direct Known Subclasses:
HacSessionCloseStrategy

public class DefaultSessionCloseStrategy extends Object implements SessionCloseStrategy
Default strategy that sets max inactive interval for each http session based on hybris properties. It first searches for [ext_name].session.timeout property and falls back to default.session.timeout property if extension specific property was not set.
  • Field Details

    • DEFAULT_SESSION_TIMEOUT

      public static final int DEFAULT_SESSION_TIMEOUT
      See Also:
  • Constructor Details

    • DefaultSessionCloseStrategy

      public DefaultSessionCloseStrategy()
  • Method Details

    • closeSessionInHttpSession

      public void closeSessionInHttpSession(javax.servlet.http.HttpSession session)
      Specified by:
      closeSessionInHttpSession in interface SessionCloseStrategy
    • setTimeoutOnHttpSessionCreation

      public void setTimeoutOnHttpSessionCreation(javax.servlet.http.HttpSession httpSession)
      Specified by:
      setTimeoutOnHttpSessionCreation in interface SessionCloseStrategy
    • closeJaloSession

      public void closeJaloSession(JaloSession js)
    • removeJaloSessionFromHttpSession

      public void removeJaloSessionFromHttpSession(javax.servlet.http.HttpSession session)