Subscribe to Logout Event?

Posted by Community Admin on 04-Aug-2018 23:05

Subscribe to Logout Event?

All Replies

Posted by Community Admin on 08-Aug-2011 00:00

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

Posted by Community Admin on 09-Aug-2011 00:00

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

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed