This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to specify logout in jsp/tomcat ?  RSS feed

 
sarim raza
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't really a Linux/Unix question, so I've moved it to the Tomcat forum for you.
 
Tim Holloway
Bartender
Posts: 18661
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!