I have a web application developed in JSP, TomCat 4.1.18.
In the application, I am logging a user and setting the userId in the session. After the user does whatever he needs to do, he would click on LogOut.
In the LogOut.jsp, I have the following code.
<%@ page language= "java" %>
<%@ page import="javax.servlet.http.HttpSession" %>
<%
if(request.getParameter("logout"!=null){
out.println("called Me"
session.removeValue("loginid"
session.removeValue("isadmin"
session.invalidate();
}
response.sendRedirect("login.jsp"
%>
My problem is that 'login.jsp' is never being called. Instead, it's staying on the screen from where I clicked 'LogOut'.
Can any body help me??
In the application, I am logging a user and setting the userId in the session. After the user does whatever he needs to do, he would click on LogOut.
In the LogOut.jsp, I have the following code.
<%@ page language= "java" %>
<%@ page import="javax.servlet.http.HttpSession" %>
<%
if(request.getParameter("logout"!=null){
out.println("called Me"
session.removeValue("loginid"
session.removeValue("isadmin"
session.invalidate();
}
response.sendRedirect("login.jsp"
%>
My problem is that 'login.jsp' is never being called. Instead, it's staying on the screen from where I clicked 'LogOut'.
Can any body help me??