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 Preventing the submission of a jsp/html page on users relogging in after timeout 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 "Preventing the submission of a jsp/html page on users relogging in after timeout" Watch "Preventing the submission of a jsp/html page on users relogging in after timeout" New topic
Author

Preventing the submission of a jsp/html page on users relogging in after timeout

poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
Hi,
I have configured session timeout for my pages.

Now in one of the pages, i have a submit action. My session is timeout when i click on the link. If i relogin again, since it was the submit what i clicked before the session timeout, it directly submit my page.

How can i prevent the page from being submitted when the user logging in again after a time out?


Any kind of help will be greatly appreciated.

Regards,
Poornima
Srikanth Kumar
Ranch Hand

Joined: Jun 04, 2008
Posts: 36
You can use filters to reject such requests for which the session has expired.


Srikanth Kumar
SCJP 5, SCWCD 5, SCDJWS 5
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Preventing the submission of a jsp/html page on users relogging in after timeout