How to use the IsAuthenticated property?

Discussion in 'ASP .Net' started by =?Utf-8?B?THVpcyBGYWphcmRv?=, Nov 5, 2004.

  1. Sounds like a very simple question, and maybe really is, but here it goes.

    I'm being using Forms Authentication for some time now, and everything is
    cool, the question that I have is that I want to ALWAYS have my HttpContext
    set with a FormsIdentity (within the GenericPrincipal) no matter if the
    customer did the sing-in or not, but use the IsAuthenticate property to
    control the access to some areas on my site. The reason I'm asking is
    because, it appears to me that just by instantiating a FormsIdentity object
    the IsAuthenticated property is set to TRUE internally so I don't have
    opportunity to control that property (is read only). Am I interpreting wrong
    this flag? Is not intended for me to use it in the way I want to use it? I
    can work around my problem using a custom flag and put it on the user data of
    the ticket, but it'll be nice not to do that for something that appears to be
    there already. How should I do it?

    Thanks in advance
     
    =?Utf-8?B?THVpcyBGYWphcmRv?=, Nov 5, 2004
    #1
    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. Nick
    Replies:
    0
    Views:
    462
  2. Bob
    Replies:
    1
    Views:
    11,969
    Joe Fallon
    Apr 29, 2004
  3. ChInKPoInt [No MCSD]
    Replies:
    0
    Views:
    812
    ChInKPoInt [No MCSD]
    Dec 4, 2004
  4. Pascal
    Replies:
    0
    Views:
    482
    Pascal
    Aug 31, 2005
  5. Deven
    Replies:
    1
    Views:
    639
    Patrice
    Aug 5, 2009
Loading...

Share This Page