Description
If the HttpSession is manually invalidated exceptions will be thrown because Context#getSession() returns a cached invalid session.
To fix we could change Context#getSession to:
public HttpSession getSession()
{ return request.getSession(); }