https://ankitsharmablogs.com/cookie-authentication-with-asp-net-core-2-0/
Cookie Authentication With ASP.NET Core 2.0