Remova a sessão no núcleo dotnet

You can clear the session by simply calling:
HttpContext.Session.Clear();
Badie96