More in this section

Forums / Developing with Sitefinity / Subscribe to Logout Event?

Subscribe to Logout Event?

2 posts, 0 answered
  1. Chris
    Chris avatar
    9 posts
    Registered:
    08 Aug 2011
    08 Aug 2011
    Link to this post
    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
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    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