removed unnecessary condition
avoiding to store pending http requests in case of connection failure
re-modeled the session management (removed the use of the end session api)