edu.vt.middleware.ldap.servlets.session
Class DefaultSessionManager
java.lang.Object
edu.vt.middleware.ldap.servlets.session.SessionManager
edu.vt.middleware.ldap.servlets.session.DefaultSessionManager
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.
- Version:
- $Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
- Author:
- Middleware Services
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSessionManager
public DefaultSessionManager()
login
public void login(javax.servlet.http.HttpSession session,
String user)
throws javax.servlet.ServletException
- This performs any actions necessary to login the suppled user.
- Specified by:
login in class SessionManager
- Parameters:
session - HttpSessionuser - String
- Throws:
javax.servlet.ServletException - if an error occurs initializing the session
logout
public void logout(javax.servlet.http.HttpSession session)
throws javax.servlet.ServletException
- This performs any actions necessary to logout the suppled session.
- Specified by:
logout in class SessionManager
- Parameters:
session - HttpSession
- Throws:
javax.servlet.ServletException - if an error occurs cleaning up the session
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.