tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SH Solutions" <i...@sh-solutions.de>
Subject AW: How to logout
Date Wed, 10 Dec 2003 08:32:45 GMT
Hi

> <input type="submit" name="id0" value="Logout"
onclick="session.invalidate();response.sendError(response.SC_UNAUTHORIZED,
'Logged out');" >

You are mixing Java and JavaScript here.
Since session.invalidate() might even exist in some browsers javascript,
response.sendError surely wont.
Send the logout request to your server and do the invalidate and sendError
there from your servlet. That should work.

cu
  Steffen


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message