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

Discussion in 'ASP .Net Security' started by mjweiner@gmail.com, Aug 4, 2006.

  1. Guest

    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
    , Aug 4, 2006
    #1
    1. Advertising

  2. 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

    > 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
    >
    Dominick Baier, Aug 4, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Krussow
    Replies:
    2
    Views:
    629
    Richard
    Jan 17, 2005
  2. =?Utf-8?B?U2FtdWVsIENoYW4=?=

    Textchanged event fires on every post

    =?Utf-8?B?U2FtdWVsIENoYW4=?=, Jan 18, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    3,100
    =?Utf-8?B?RXRoZW0gQXp1bg==?=
    Jan 18, 2005
  3. Max2006
    Replies:
    2
    Views:
    1,563
    Walter Wang [MSFT]
    Sep 19, 2007
  4. Replies:
    3
    Views:
    990
  5. Abhijit
    Replies:
    0
    Views:
    149
    Abhijit
    Apr 12, 2004
Loading...

Share This Page