aspose file tools*
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
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: 16250
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to specify logout in jsp/tomcat ?