This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Dear All, Is it possible to recreate a new session object as soon as a timeout has occured on the original. I presume I would need to put an object in the orginal session that implements the HttpSessionBindingListener and recreate it in the valueUnbound(). Alterantively, is it possible to redirect a request object once the valueUnBound() has been called on an object Any help would be appreciated regards Tony
When your HttpSessionBindingListener gets called due to a timeout and the session being destroyed, there is in fact NO request on-going so you can't create a new session. What you could do would be to move the data to some other form of storage such as a serialized file or database entry for that particular user. Important Note: When the session is being destroyed, the only data you can reliably recover is that contained in the object that implements the HttpSessionBindingListener interface. Other items may have already been unbound. Bill