April 2017
Intermediate to advanced
564 pages
24h 7m
English
Cookie middleware provides various events that can be overridden by defining the method name through CookieAuthenticationOptions. This is beneficial in terms if you need to add your own logic of setting up a browser cookie or clearing up a browser cookie, validating a cookie, and more.
The following are the events provided in the CookieAuthenticationOptions:
| Event | Description |
| RedirectToAccessDenied | When an access denied causes a redirect in the cookie middleware. |
| RedirectToLoginIn | When a sign in causes a redirect in the cookie middleware. |
| RedirectToLogout | When a sign out causes a redirect in the cookie middleware. |
| RedirectToReturnUrl | When redirecting to a return URL. |
| SignedIn | When a cookie is created ... |
Read now
Unlock full access