This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes How to disabel the back and forward after session is invalidated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to disabel the back and forward after session is invalidated" Watch "How to disabel the back and forward after session is invalidated" New topic
Author

How to disabel the back and forward after session is invalidated

Bhavik Patel
Ranch Hand

Joined: Jul 12, 2004
Posts: 155
Hiiii...I have one logout.jsp page which logouts a user from a registration system application.I have used beans in session scope .....my main welcome page is just menus with greeting the user....whenever user clicks logout button i have put session.invalidate() in the logout.jsp.....but from the response of logout.jsp if user uses browser navigator(BACK,Forward)it will take the user again inside the welcome .jsp page which comes whenever user logs in....


login.jsp--->welcome.jsp(with diff menus and greeting to user,one of them logout)-->logout.jsp-->responseLogout.jsp(successfully logged out .....click here to login again)

if user clicks back after responseLogout.jsp it takes the user to welcome.jsp.....it should invalidate the session...Thanks in Advance....
[ April 23, 2005: Message edited by: Bear Bibeault ]

SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
chowdary Thammineedi
Ranch Hand

Joined: Aug 16, 2004
Posts: 126
Hello Bhavik

There is a nice article on this topic, here.
http://www.javaworld.com/javaworld/jw-09-2004/jw-0927-logout.html
Bhavik Patel
Ranch Hand

Joined: Jul 12, 2004
Posts: 155
Thanks i will follow the link...i guesss that will work .....
 
jQuery in Action, 2nd edition
 
subject: How to disabel the back and forward after session is invalidated