Hi! Bill
Thanks for your reply !
I have currently implemented it in the same fashion. I am aware that if the user's session has timed out then, the container would go ahead and destroy that session. However, at that point of time i would'nt want an internal site page to still be viewable to others. In other words, if the system is idle for some time then, an automatic redirection should take place. This would be very much similar to how windows 2000/NT based systems maintain system security wherein if the user has not used the system for a specified amount of time then, the system automatically logs off and goes into a sign in mode(normally ctrl-alt-del is pressed to specify user identification details).
Similarly, in the second problem wherein the user clicks the sign out button. In this case i am invoking the Controller Servlet which in turn is invoking a particular servlet which peforms the task of invalidating the current session. This is done by invoking session.invalidate(). Following which the user is forwaded to a "Thank You Page". As mentioned earlier to track sessions i am printing the session id on every page so, it is on this page too. The result of the session id printed on this page is a different session id which, is expected and right. However, when the user now clicks on the back button he is still able to view the complete site. Furthur, when the user clicks on any link now, what gets printed is the new session id. Also, since i have implemented this application using the MVC
Pattern wherein every request is first sent to the Controller Servlet wherein, i am checking whether current session is valid by invoking the request.isRequestedSessionIdValid() and if not redirecting the user to the Login Page. However, this does'nt happen since, as in the above senario after invalidating a users sesion and redirecting the user to a thank you page a new session is now created which is now considered by the browser to be a valid session.
How should these problems be solved so as to have stronger site security implemented ???
Pls Suggest.
Thank You