|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Handling FormsAuthentication Events
Visual Studio 2005
To customize how the forms authentication ticket is handled and how theproperty is set, you can handle the FormsAuthentication_OnAuthenticate event in your application's Global.asax file. Although it is common to allow forms authentication manage these tasks for you, your applications might have specific requirements, such as setting the User property to a custom class that implements the interface. In those cases, your application should handle the FormsAuthentication_OnAuthenticate event and perform cookie management. For more information, see .