LoggedOut Event is not firing in the Login Control in ASP.NET

Posted By  Mostafa Elzoghbi On 11 Jan 2011 10:01:01
emailbookmarkadd commentsprint
No of Views:632
Bookmarked:0 times
Votes:0 times

Introduction

In this tip i'm showing an issue i faced when i was working with the login control in ASP.NET.

Problem

If you tried to write code to clean up some resources when you log out from your asp.net application and you had an issue that the LoggedOut event handler is not firing.

Resolution

  1. Check the properties of your login control and if the Logout Action property is not set to Refresh,
  2. You need to update this property and set it to Refresh then your loggedout event will be handled.
  3. I had the logout action property to redirect and that's why the loggedout event handler wasn't called in my code.

Hopes help and save your time.

Sign Up to vote for this article
Other popular Tips/Tricks
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top