Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logout functionality in struts..

 
Srikanth Madasu
Ranch Hand
Posts: 48
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic