Results 1 to 2 of 2

Thread: how to create login control???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Posts
    227

    how to create login control???

    i am designing a composite web control that has that if the user is authenticated and loged in shows something like " welcome <username > , sing out " and if not authenticated shows something like "log in"
    so the questions are >>

    1. how can i retreive the authenitication cookie of that session ( it of course exists if user has before been authenticated )

    2. then i have to send the user identity that we got to the user to the custom control, in which event of the form should we do that ? ( the event should be after getting the cookie , and before rendering the custom control )

    and generally asking, whats the difference between a formsauthenticationticket class, with a normal cookie? what does it have more?


    thanks for your time ...

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Posts
    227
    i got the answer for the first Q, we can use the forms FormsAuthentication.FormsCookieName Property then get the cookie and then decrypt and use the formsauthenticationticket, can anyone help me out with the second question?!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width