More in this section
Forums / Developing with Sitefinity / Subscribe to Logout Event?

Subscribe to Logout Event?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Chris
    Chris avatar
    9 posts
    08 Aug 2011
    08 Aug 2011
    Link to this post

    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,
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    09 Aug 2011
    Link to this post
    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
2 posts, 0 answered