Can register a session without a lambda function