Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I need help on developing login/logout application using struts2 frame work  RSS feed

 
nalamati satyanarayana
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I developed login/logoout application using struts2 frame work like

first it will display login page once you enter user name and password it will display user information screnn , There if you click on logout it will redirect to login jsp.
after that if i click on back button on browser it is redirecting to user information screen. but i donot want to go to user information screen.
Can you please help me out to solve these problem .
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disable caching.
 
Pawan Kalyan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey i too have the same problem with struts 2.

Though i am clearing the cache on each jsp like :

response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1);

But i am able to go back to the page even after invalidating the session.

Can someone help me how to do this.

Thanks,
Pawan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!