2.0 Forms authentication event that fires every time a user is authenticated

M

mjweiner

In ASP.NET 2.0, forms authentication, Is there an event that is fired
every time a user is authenticated? I can easily trap every time a user
logs in via the login control, but this neglects to capture the times
the user is automatically logged in via a persistent cookie.

In 1.1, I remember that there was an event in the global.asax file that
fired, but I can't find anything similar in 2.0.

This should be a simple problem, but I haven't been able to find
anything useful.

thanks,

matt weiner
 
D

Dominick Baier

you can still use the same event - it is called AuthenticateRequest (e.g.
in global.asax)

There you can check for an authenticated request with

if (Context.Request.IsAuthenticated)
{}

dominick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top