Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Session handling using Struts

Thu Oct 23, 2008 1:30 am

I need help on session handling using struts.

Steps i am following:
1) Deploy the war in some Webserver.
2) Hit http://hostname:port/App/
3) Username / Password : abc / abc
4) After successful login you can see a jsp with Login Successful
message and a link (Logout) to logout.
5) Click on Logout link. The user logs out successfully.
6) You can find link to re-login, which takes you to login screen.

Problem:
1) Repeat steps 1, 2,3,4,5.
2) Click browsers back button on the Logout Screen.
3) Takes you to a screen saying “Webpage has expired”. (This happens
because I have removed browsers cache in JSP’s)
4) Do refresh using F5.

5) The control takes to the previous screen instead of saying login
expired.

I am using session.invalidate() when the user clicks Logout.

Please help me in moving forward regarding this issue.



Re: Session handling using Struts

Tue Mar 10, 2009 4:33 am

have u found any solution for that??

Post a reply
  Related Posts  to : Session handling using Struts
 Struts advantages     -  
 steps of doing struts on myeclipse     -  
 Struts 2 Security Plugin     -  
 What is Event Handling?     -  
 Exception handling     -  
 ComponentListener event handling     -  
 try-with-resource automatic handling     -  
 Material Handling Equipment     -  
 Error handling in AJAX     -  
 Event Handling Notes     -