This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
nalamati satyanarayana
Ranch Hand
Posts: 39
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disable caching.
 
Pawan Kalyan
Ranch Hand
Posts: 34
  • 0
  • 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