unauthenticate user

Discussion in 'ASP .Net' started by mike parr, May 24, 2004.

  1. mike parr

    mike parr Guest

    I am using FormsAuthentication.SetAuthCookie to authenticate users.
    However, I have a link that the user can click if they are not the user
    logged in, so I need to be able to do the opposite of SetAuthCookie
    (i.e. unauthenticate a user).

    Does anybody know how to do this?


    Cheers,

    Mike



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    mike parr, May 24, 2004
    #1
    1. Advertising

  2. mike parr

    mortb Guest

    When using forms authentication just do:

    FormsAuthentication.SignOut();

    cheers,mortb

    "mike parr" <> wrote in message
    news:...
    > I am using FormsAuthentication.SetAuthCookie to authenticate users.
    > However, I have a link that the user can click if they are not the user
    > logged in, so I need to be able to do the opposite of SetAuthCookie
    > (i.e. unauthenticate a user).
    >
    > Does anybody know how to do this?
    >
    >
    > Cheers,
    >
    > Mike
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    mortb, May 24, 2004
    #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. Tom Rowton
    Replies:
    2
    Views:
    683
    Tom Rowton
    Aug 1, 2003
  2. Jaydeep
    Replies:
    3
    Views:
    1,071
    vedcyrus
    Jun 30, 2006
  3. =?Utf-8?B?YWJqb3Jr?=
    Replies:
    1
    Views:
    3,862
    Jeffrey Palermo
    May 5, 2004
  4. Somyos Jinkow

    user.isinrole in user control

    Somyos Jinkow, Jun 1, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,936
    =?Utf-8?B?cmFuZ2FuaA==?=
    Jun 1, 2004
  5. Mike Newton
    Replies:
    0
    Views:
    2,949
    Mike Newton
    Jul 23, 2004
Loading...

Share This Page