views:

414

answers:

0

I am working on a struts2/spring/hibernate application running in Tomcat 5.5 server. i have defined my struts action in session scope. The problem i am facing is even when the server session times out, and at that time, if the user clicks on any link in the application, he is redirected to the login page.(This is right and as expected) But once he signs in, he is still seeing the page with the data loaded as the result of the last click event. This problem does not arise when the struts action is defined in request scope.

i have explicitly defined the session to time out in the web.xml after 20 min.

The session is completely managed by spring and there is no explicit hibernate code to open and close a session. i just use a discrete criteria query to fetch the data.

Can anyone guide me how to resolve this?