Class LogoutServlet

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----LogoutServlet

public class LogoutServlet
extends HttpServlet
This servlet logs out the user ie it deletes all the session info.


Constructor Index

 o LogoutServlet()

Method Index

 o init(ServletConfig)
Initialise the servlet
 o service(HttpServletRequest, HttpServletResponse)
Invalidate the session.

Constructors

 o LogoutServlet
 public LogoutServlet()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Initialise the servlet

Overrides:
init in class GenericServlet
 o service
 public void service(HttpServletRequest req,
                     HttpServletResponse res) throws ServletException, IOException
Invalidate the session.

Parameters:
req - HttpServletRequest - the request
res - HttpServletResponse - the response for the request
Overrides:
service in class HttpServlet