Interface LoginToHttpSessionBinder


  • public interface LoginToHttpSessionBinder
    Maintains an association of Unity's LoginSessions with HttpSessions. The main purpose is to invalidate the latter when Unity session is expired. The implementation also takes care about memory consumption: whenever a HttpSession is expired it is removed from the registry.

    Thread safe.

    Author:
    K. Benedyczak
    • Field Detail

    • Method Detail

      • removeLoginSession

        void removeLoginSession​(java.lang.String toRemove,
                                boolean soft)
        Parameters:
        toRemove -
        soft - if true then only the login data is removed from the HTTP session. Otherwise the whole session is invalidated
      • bindHttpSession

        void bindHttpSession​(javax.servlet.http.HttpSession session,
                             LoginSession owning)