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