This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes Logout 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 » Websphere
Bookmark "Logout " Watch "Logout " New topic
Author

Logout

Abhijit Ajansondkar
Greenhorn

Joined: Jul 13, 2012
Posts: 10
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
Kurtcebe Eroglu
Ranch Hand

Joined: Jan 30, 2007
Posts: 30
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

Joined: Jul 13, 2012
Posts: 10
thanks man ! but i use apache tomcat server not the Websphere so i don't know about ibm .
Kurtcebe Eroglu
Ranch Hand

Joined: Jan 30, 2007
Posts: 30
Well, then may be you shall post your question on Tomcat Forum instead of here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Logout
 
Similar Threads
Http method post not supported by this url
Still getting same error
Can a servlet architecture download a file?
HTTP method POST is not supported by this URL
Session Invalidate