Hi again all. I am working on my
struts app and I now want to put in a mechanism to handle timeouts. When a user leaves their application for the timeout time, if they click on anything I want them to be redirected to the login page. I have a value that I put in session that I check for to see if the user is logged in/that they have been authenticated. The value is only put in after all authentication.
My question is it there an easy way to intergrate this into my application ? That is to say would it be possible to subclass action and place this
test in it and then change all my actions to extend my newly subclassed Action class ? Or would it be better to simply place all of these tests in each Action (this seems quite ugly and does not make good code re-use at all )
I am open to any other suggestions or ideas that anyone might be able to give.
thanks in advance.