O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fixing the login

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required