How logout in code that using Window Authentication?

Discussion in 'ASP .Net Security' started by Neil, Aug 19, 2004.

  1. Neil

    Neil Guest

    Hi,
    We using Window Autoentication, but we want logout in our code, how
    should i do?

    Thanks.
    Neil.
     
    Neil, Aug 19, 2004
    #1
    1. Advertisements

  2. Neil

    Raterus Guest

    You can't, once authenticated always authenticated with that authentication type. What you could do is instead of <identity impersonate="true">, set that to false, and then just impersonate with code when you want to, perhaps make a forms based application to simulate logging in/out. But this is really impractical when working with windows authentication, these applications are usually located on the intranet, and there is really no need to log in/out of them.

    --Michael
     
    Raterus, Aug 19, 2004
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.