How to handle cookie expiration in asp.net core
I would like to know how to properly handle the fact that the cookie expired? Is it possible to execute a custom action ? What I would like to achieve is that when the cookie is expired is to take few informations out of the current cookie at redirect to a action parametrise by this information. Is it possible ? Looks like you need your own handler for OnValidatePrincipal event when setuping cokies auth middleware: OnValidatePrincipal event can be used to intercept and override validation of the cookie identity app.UseCookieAuthentication(options => { options.Events = new