title: Struts2 interceptor to track last page before session timeout
body: <p>I have a web application where if the user session has timedout and they try to login in again i need to redirect them to the last visited page. ONLY for session timeout, if the user logged out i donot want this mapping.</p>
  
  <p>I understand that it can be done using an interceptor and a application scope mapping. But can you give me a code sample for an  interceptor that updates current users url? Also my application scope object..how do i say after say 5 hrs of no relogin remove the reference to last page for that user???</p>