Ensure that session is set before adding the redirectTo.