Added Session Management

added session management, session timeout