How do you detect when a user logs out using the ASP.Net 4 session management? I have a site that is using the <LoginTemplate> with a <LoginStatus> control. When the user clicks the “Log out” link, it should fire the LoggingOut event of the LoginStatus, but I cannot get it to do so. Is there another way to detect when the user logs out of the application? Session_End isn’t being fired because the session itself is still valid, just that the user isn’t logged in.
Share
OK, I found my problem. The LoginTemplate control obliterates the LoginStatus’s LoggingOut event. Once I created my own header it works