CookieMiddleware: removes closed session from internal container.
Improved autoclose session test to include trace of closed session.