I would suggest writing a session listener in conjunction with the filter.
When the session expires you can create a new session object and set a timeout value on the new object.
Just check for the timeout value in the filter and redirect the browser.
See http://www.java2s.com/Code/Java/Servlets/Servletsessionlistener.htm