Subscribe to Logout Event?
Hello,
We are working on a module for Sitefinity that requires some cleanup logic to happen whenever a user logs out. I looked for a little while but cannot find an obvious way to accomplish this - is there an event that fires on log out that we can subscribe to?
Thank you,
Chris
Hello Chris,
There is no event that is thrown when you log out. You can subscribe for Application_AuthenticateRequest in Global.asax and get the requested url ((System.Web.HttpApplication)(sender)).Request.Url. If it is /Sitefinity/Login/DoLogout then you have clicked the logout button.
Kind regards,
Ivan Dimitrov
the Telerik team