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.
-
LogoutServlet()
-
-
init(ServletConfig)
- Initialise the servlet
-
service(HttpServletRequest, HttpServletResponse)
- Invalidate the session.
LogoutServlet
public LogoutServlet()
init
public void init(ServletConfig config) throws ServletException
- Initialise the servlet
- Overrides:
- init in class GenericServlet
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