Interface LoginToHttpSessionBinder
-
public interface LoginToHttpSessionBinderMaintains an association of Unity'sLoginSessions withHttpSessions. The main purpose is to invalidate the latter when Unity session is expired. The implementation also takes care about memory consumption: whenever aHttpSessionis expired it is removed from the registry.Thread safe.
- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSER_SESSION_KEYUnder this key theLoginSessionid is stored in the HTTP session.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbindHttpSession(javax.servlet.http.HttpSession session, LoginSession owning)voidremoveLoginSession(String toRemove, boolean soft)
-
-
-
Field Detail
-
USER_SESSION_KEY
static final String USER_SESSION_KEY
Under this key theLoginSessionid is stored in the HTTP session.- See Also:
- Constant Field Values
-
-
Method Detail
-
removeLoginSession
void removeLoginSession(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)
-
-