views:

31

answers:

2

I would like to do som extra processing whenever a user is signed out from forms authentication.

According to this MSDN article there is a

FormsAuthentication_OnAuthenticate

event but I need something like a

"FormsAuthentication_OnSignOut" (Which doesn't exist)

Any ideas?

/J

+1  A: 

Keep the user signed in until they explicitly sign out - and when they click the logout link use something like the following:

private void OnLogOut (Object sender, EventArgs e) { FormsAuthentication.SignOut (); //extra processing here }

FiveTools
A: 

As far as I have been able to find out there are no way to make this hook.

You have to add any extra code to the place where you do the FormsAuthentication.Signout().

(Of course you could apply some AOP techniques but this was not relevant in my case)

JensJ