public class DefaultSessionManager extends SessionManager
DefaultSessionManager provides a base class for session
management. After a successful authentication, this class sets the session id
that is set for the login servlet to the user name. After logout the session
id attribute is removed from the session. This class is used by default if no
custom session manager has been set.invalidateSession, logger, sessionId| Constructor and Description |
|---|
DefaultSessionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
login(javax.servlet.http.HttpSession session,
String user)
This performs any actions necessary to login the suppled user.
|
void |
logout(javax.servlet.http.HttpSession session)
This performs any actions necessary to logout the suppled session.
|
setInvalidateSession, setSessionIdpublic void login(javax.servlet.http.HttpSession session,
String user)
throws javax.servlet.ServletException
login in class SessionManagersession - HttpSessionuser - Stringjavax.servlet.ServletException - if an error occurs initializing the sessionpublic void logout(javax.servlet.http.HttpSession session)
throws javax.servlet.ServletException
logout in class SessionManagersession - HttpSessionjavax.servlet.ServletException - if an error occurs cleaning up the sessionCopyright © 2014. All rights reserved.