Added removal of invalid sessions on request authentication.