This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes issue with logout from struts app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "issue with logout from struts app" Watch "issue with logout from struts app" New topic
Author

issue with logout from struts app

viji jeyabalan
Greenhorn

Joined: Feb 01, 2012
Posts: 2
i have an application with logout option, when i click on that it gets logged out, but when i click on back option in the browser then the previous page is appearing which is not suppose to...i have implemented session invalidate and all...still getting the page back, this is happening because of the login.do when back button got hit, how to prevent the page from redirected to the login.do page?

[Edit: removed email address on request]
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

viji jeyabalan wrote:i have an application with logout option, when i click on that it gets logged out, but when i click on back option in the browser then the previous page is appearing which is not suppose to...i have implemented session invalidate and all...still getting the page back, this is happening because of the login.do when back button got hit, how to prevent the page from redirected to the login.do page? contact me to the mail id rohini8204@yahoo.com


Pay more attention when posting your query. As per my understanding after logout action you have to redirect to login page. Now the user clicking on back button you getting previous page this is happening because of browser cache, Just clear browser cache in logout Action.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
viji jeyabalan
Greenhorn

Joined: Feb 01, 2012
Posts: 2
hi mohan, how do i implement that?
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

refer the following link. Clear Browser chache.
 
wood burning stoves
 
subject: issue with logout from struts app
 
Similar Threads
Logout functionality in struts..
Again back button wiht logout link
How to end a session
logout from page with frames
Logoff problem