Session logic changes.