Implemented the the session time out

Implemented the the session time out