Class AxelorSessionManager

  • All Implemented Interfaces:
    org.apache.shiro.session.mgt.SessionManager, org.apache.shiro.web.session.mgt.WebSessionManager

    @Singleton
    public class AxelorSessionManager
    extends org.apache.shiro.web.session.mgt.ServletContainerSessionManager
    Session Manager

    Lets the Servlet container manage the sessions and uses SameSite attribute for secure requests.

    • Constructor Detail

      • AxelorSessionManager

        public AxelorSessionManager()
    • Method Detail

      • start

        public org.apache.shiro.session.Session start​(org.apache.shiro.session.mgt.SessionContext context)
                                               throws org.apache.shiro.authz.AuthorizationException
        Specified by:
        start in interface org.apache.shiro.session.mgt.SessionManager
        Overrides:
        start in class org.apache.shiro.web.session.mgt.ServletContainerSessionManager
        Throws:
        org.apache.shiro.authz.AuthorizationException
      • getSession

        public org.apache.shiro.session.Session getSession​(org.apache.shiro.session.mgt.SessionKey key)
                                                    throws org.apache.shiro.session.SessionException
        Specified by:
        getSession in interface org.apache.shiro.session.mgt.SessionManager
        Overrides:
        getSession in class org.apache.shiro.web.session.mgt.ServletContainerSessionManager
        Throws:
        org.apache.shiro.session.SessionException
      • changeSessionId

        public void changeSessionId()
      • getSession

        protected org.apache.shiro.session.Session getSession​(boolean create,
                                                              Object source,
                                                              javax.servlet.http.HttpServletRequest request,
                                                              String host)
      • setSameSiteNone

        protected void setSameSiteNone​(javax.servlet.http.HttpServletResponse response)