Conditionally set sliding expiration time on authentication cookies in ASP.NET Core - Cacti pins

added by DotNetKicks
12/16/2016 5:26:51 PM

2 Kicks, 115 Views

Using ASP.NET Core's cookie middleware for authentication is pretty neat. Once set up properly, it allows us to seamlessly share authentication between our existing 4.6 MVC OWIN application and our new fancy Core SPA. One key feature is the SlidingExpiration option.