This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Servlets and the fly likes Logout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Logout" Watch "Logout" New topic


Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
I have a web site running IPlanet web server.
I am using default authentication.
I need to be able to logout user from the web page without closing the browser windows.
Does anyone know how to do that from JSP/Servlet?

[This message has been edited by Aleksey Matiychenko (edited May 21, 2001).]
Yongping Wang
Ranch Hand

Joined: May 15, 2001
Posts: 40
Use session attrubute in your servlets. Once a user attemps to log out, set the session.invalidate(). That's it. Good luck.
I agree. Here's the link:
subject: Logout