I would like to kill a servlet session (logout) from a servlet generated
html page using a submit button. Can I put the code (shown below)
in the same servlet that generated the html page and call it again
to kill the session using a submit button? If so, how?
Sincerely,
Tom K.
else if(choice.equals("EndSession")){
try{
session.invalidate();
response.sendRedirect(request.getScheme() + "://" +
request.getServerName() + ":"
+ request.getServerPort() +
"/login.html");
return;
}
catch(IllegalStateException e) {
System.out.println("Exception " + e);
}
}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html