aspose file tools*
The moose likes Struts and the fly likes Logout functionality in struts.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Logout functionality in struts.." Watch "Logout functionality in struts.." New topic
Author

Logout functionality in struts..

Srikanth Madasu
Ranch Hand

Joined: Sep 10, 2008
Posts: 48

Hi All,
Well I am working on a application using struts all works fine. But I have a question about Logout functionality.

Right now i am just showing a confirmation page, when Logout is clicked. (Of course here I am not cleaning up session or anything, I am just taking to next page.) But when I click on back button I can still view the previous page. This is what I expected!!

I want it in such a way that when user will logout from system he should not able to get back to the application by clicking back button of the browser.

I am completely new to struts and I am trying a small sample application. I will be very thankful, if anybody can help me in implementing this logout functionality.

Thanks!!
Srik


If it's easy.. then everybody would do it!
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Originally posted by Srik Messmer:


I want it in such a way that when user will logout from system he should not able to get back to the application by clicking back button of the browser.



This is browser specific issue, There are some JavaScript methods , which disable the browsers back button.

This thing is discussed here many time , Just Search the forum with search string as "disable back button".


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Logout functionality in struts..