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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUnder this key theLoginSessionid is stored in the HTTP session. -
Method Summary
Modifier and TypeMethodDescriptionvoidbindHttpSession(javax.servlet.http.HttpSession session, LoginSession owning) voidremoveLoginSession(String toRemove, boolean soft)
-
Field Details
-
USER_SESSION_KEY
Under this key theLoginSessionid is stored in the HTTP session.- See Also:
-
-
Method Details
-
removeLoginSession
- Parameters:
toRemove-soft- if true then only the login data is removed from the HTTP session. Otherwise the whole session is invalidated
-
bindHttpSession
-