Added expiration and auto-refresh for active session id