Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Tomcat and the fly likes how to specify logout in jsp/tomcat ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to specify logout in jsp/tomcat ?" Watch "how to specify logout in jsp/tomcat ?" New topic
Author

how to specify logout in jsp/tomcat ?

sarim raza
Ranch Hand

Joined: Nov 02, 2000
Posts: 232
I know how to login, using modifications to
server.xml and web.xml files ...
how do i logout now, by clicking on say a button
this should then require the user to enter their username/password again to see the secure pages ...
i think it has something to do with invalidating a session. ..
please help
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
This isn't really a Linux/Unix question, so I've moved it to the Tomcat forum for you.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17144
    
  27

session.invalidate()
It's not even truly a Tomcat question. The mechanism's defined as part of the Servlet and (by implication, at least) JSP standards.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to specify logout in jsp/tomcat ?
 
jQuery in Action, 3rd edition