edu.vt.middleware.ldap.servlets.session
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,
java.lang.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, setSessionId
public void login(javax.servlet.http.HttpSession session, java.lang.String user) throws javax.servlet.ServletException
login
in class SessionManager
session
- HttpSession
user
- String
javax.servlet.ServletException
- if an error occurs initializing the sessionpublic void logout(javax.servlet.http.HttpSession session) throws javax.servlet.ServletException
logout
in class SessionManager
session
- HttpSession
javax.servlet.ServletException
- if an error occurs cleaning up the sessionCopyright © 2014. All Rights Reserved.