How to log out of asp.net app using Windows Auth NOT Forms Auth

Discussion in 'ASP .Net Security' started by Ed Staffin, Apr 16, 2006.

  1. Ed Staffin

    Ed Staffin Guest

    Hi I have a intranet app that is using Windows authentication.
    I want to set up a log out procedure that takes them to a page where they
    can choose to log back in. In FormsAuth I did this using:
    FormsAuthentication.SignOut()
    Response.Cookies.Clear()
    Session.Abandon()
    And if the user chose to log back in I just did:
    FormsAuthentication.RedirectToLoginPage()

    How can do I do the equivalent of FormsAuthentication.SignOut() when I am
    using Windows Authentication? Also, once I make whatever call it is to log
    out, will they automatically get a sign in dialog when they subsequently try
    to access a page?
    Thanks ... Ed
     
    Ed Staffin, Apr 16, 2006
    #1
    1. Advertising

  2. Ed Staffin

    Ken Schaefer Guest

    Hi,

    See this post on my blog:
    http://www.adopenstatic.com/cs/blogs/ken/archive/2005/04/12/14.aspx

    Cheers
    Ken

    --
    My IIS Blog: www.adOpenStatic.com/cs/blogs/ken
    Tech.Ed 2006 Boston See you there: Everything the web administrator needs to
    know about MOM 2005

    "Ed Staffin" <> wrote in message
    news:D...
    > Hi I have a intranet app that is using Windows authentication.
    > I want to set up a log out procedure that takes them to a page where they
    > can choose to log back in. In FormsAuth I did this using:
    > FormsAuthentication.SignOut()
    > Response.Cookies.Clear()
    > Session.Abandon()
    > And if the user chose to log back in I just did:
    > FormsAuthentication.RedirectToLoginPage()
    >
    > How can do I do the equivalent of FormsAuthentication.SignOut() when I am
    > using Windows Authentication? Also, once I make whatever call it is to log
    > out, will they automatically get a sign in dialog when they subsequently
    > try
    > to access a page?
    > Thanks ... Ed
    >
    >
     
    Ken Schaefer, Apr 17, 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. =?Utf-8?B?Q2hyaXMgTW9oYW4=?=

    Configuring Windows Auth & Forms Auth in Asp.Net

    =?Utf-8?B?Q2hyaXMgTW9oYW4=?=, Apr 28, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    702
    =?Utf-8?B?Q2hyaXMgTW9oYW4=?=
    Apr 28, 2004
  2. =?Utf-8?B?ZGhucml2ZXJzaWRl?=

    Windows Auth, but Forms Auth for one page?

    =?Utf-8?B?ZGhucml2ZXJzaWRl?=, Jan 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    564
    Elton Wang
    Jan 8, 2005
  3. Chris Mohan

    Configuring Windows Auth & Forms Auth in Asp.Net

    Chris Mohan, Apr 28, 2004, in forum: ASP .Net Security
    Replies:
    2
    Views:
    431
    Chris Mohan
    Apr 29, 2004
  4. Forms Auth Info passed to Windows Auth?

    , Apr 28, 2005, in forum: ASP .Net Security
    Replies:
    1
    Views:
    220
    Hernan de Lahitte
    May 3, 2005
  5. J
    Replies:
    2
    Views:
    684
Loading...

Share This Page