Developer forum

Forum » Development » Subscriber for Logoff

Subscriber for Logoff


Reply
Hi there,

I am trying to run some code when a user logs out (clearing some cookies and other data) and noticed there's not a subscriber like Dynamicweb.Notifications.Standard.User.OnExtranetLogoff as a counter part for Dynamicweb.Notifications.Standard.User.OnExtranetLogin

Is there a reason this notification doesn't exist? And if not, can it be added one day? Right now, I handle the log off  in Global.asax by looking for the ExtranetLogoff.aspx URL. This works fine, but it's not as clean as a subscriber with, say, the current user in the e argument....

Imar

Replies

 
Reply
 I like to second this suggestion.

With one little difference. It has to be a OnBeforeExtranetLogOff subscriber.
In other words it has to be called before Session.Abandon(). Then we would still have access to the current context.
The context i very usefull if we need to do some database operations,etc.

/Kenneth
 
Nicolai Høeg Pedersen
Reply
A Notifications.Standard.User.OnBeforeExtranetLogOff has now been added.
 
Reply
Excellent. Thank you.

Imar

 

You must be logged in to post in the forum