FileDocCategorySizeDatePackage
LogoutAction.javaAPI DocExample760Thu Jun 28 16:14:16 BST 2001com.ora.jsp.servlets

LogoutAction

public class LogoutAction extends Object implements Action
This class performs the log out from the Project Billboard application.
author
Hans Bergsten, Gefion software
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public voidperform(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Invalidates the session, thereby removing the authentication token, and redirects to the login page.

        HttpSession session = request.getSession();
        session.invalidate();
        response.sendRedirect("login.jsp");