wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 15959
    
  19

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.
 
Consider Paul's rocket mass heater.
 
subject: how to specify logout in jsp/tomcat ?
 
Similar Threads
Disable browser backward button
how to kill session in transportsession scope of axis2?
How to end a session
problem in logout procedure
logout on browser close