Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Logout

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi I am Abhijit. I coded this small module which uses session. But i want the logout functionality. Thus i used invalidate() function . This is my code

The rest is working good, it is printing the name - value pair in the while loop
My main concern is how to write a code which is based on login-logout function . If somebody help me it is very good for me.
When I click logout link it is going to login page, but when i again click the back button of the browser, it is again going back to the previous page instead of redirecting to the same login page
so please help me
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to logout you must make a POST request to a special servlet, mapped at ibm_security_logout. You may check 'form logout example' section here to figure out how to setup you page to use form based logout facility.
 
Abhijit Ajansondkar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks man ! but i use apache tomcat server not the Websphere so i don't know about ibm .
 
Kurtcebe Eroglu
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, then may be you shall post your question on Tomcat Forum instead of here.
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic