remove session in dotnet core

Code Example - remove session in dotnet core

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