How logout in code that using Window Authentication?

N

Neil

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

Thanks.
Neil.
 
R

Raterus

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top