Next, we are going to fix the login. After that, our website is pretty much complete again and we can get to testing. First things first, our login method makes use of sessions. Getting session state in .NET Core is pretty well documented at https://docs.microsoft.com/en-us/aspnet/core/fundamentals/app-state. To enable sessions in .NET Core, we must install a package.
Again, you may need to disable the BundlerMinifier tool first and you may need to restart VS Code to get it to recognize the added tool in the intellisense:
[Install using the terminal]dotnet add package Microsoft.AspNetCore.Session[Add to csproj manually]<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.0.0" />[In any case]dotnet restore