The Servlet I\'m working has a variable session
.
I\'ve tried session.invalidate();
, this seem to have destroyed session but when I do a red
Your code is okay
if(request.getParameter("logout") != null )
{
session.invalidate();
response.sendRedirect("restanes.jsp");
}
but make sure the redirecting page does not contain any session attributes. 500 internal error coming from "restanes.jsp" page. work out with the redirected page and session activity.