views:

345

answers:

2

The Asp.net AJAX authentication service provides Login and Logout methods. I can configure a membership provider and a client side call to Login will call my server side ValidateUser defined in the membership provider. All good so far.

However, the Logout method issues a call to the built-in service's Logout method which basically set the ASPXAUTH cookie to nothing.

How do I hook into this call and write a server function that does a few housekeeping stuff when the Authentication service Logout is called?

TIA

A: 

Maybe the Session_End event in Global.asax can be of help to you: http://www.codetoad.com/asp.net_globalasax.asp

Erlend
Session_End is not guaranteed to fire
Chad Grant
A: 

The AJAX auth wraps Forms Authentication, so this question is the best you'll probably get http://stackoverflow.com/questions/480681/event-to-capture-when-a-formsauthenticated-user-is-un-authenticated

Chad Grant