public interface LoginToHttpSessionBinder
LoginSession
s with HttpSession
s.
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.
Modifier and Type | Field and Description |
---|---|
static String |
USER_SESSION_KEY
Under this key the
LoginSession id is stored in the HTTP session. |
Modifier and Type | Method and Description |
---|---|
void |
bindHttpSession(javax.servlet.http.HttpSession session,
LoginSession owning) |
void |
removeLoginSession(String toRemove,
boolean soft) |
static final String USER_SESSION_KEY
LoginSession
id is stored in the HTTP session.void removeLoginSession(String toRemove, boolean soft)
toRemove
- soft
- if true then only the login data is removed from the HTTP session. Otherwise the whole
session is invalidatedvoid bindHttpSession(javax.servlet.http.HttpSession session, LoginSession owning)
Copyright © 2018 Unity. All rights reserved.