Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > How to log out of asp.net app using Windows Auth NOT Forms Auth

Reply
Thread Tools

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

 
 
Ed Staffin
Guest
Posts: n/a
 
      04-16-2006
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


 
Reply With Quote
 
 
 
 
Ken Schaefer
Guest
Posts: n/a
 
      04-17-2006
Hi,

See this post on my blog:
http://www.adopenstatic.com/cs/blogs.../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" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
windows auth and forms auth Smokey Grindle ASP .Net 1 06-08-2006 03:14 PM
Windows Auth, but Forms Auth for one page? =?Utf-8?B?ZGhucml2ZXJzaWRl?= ASP .Net 1 01-08-2005 05:50 PM
Configuring Windows Auth & Forms Auth in Asp.Net Chris Mohan ASP .Net Security 2 04-29-2004 06:46 AM
Configuring Windows Auth & Forms Auth in Asp.Net =?Utf-8?B?Q2hyaXMgTW9oYW4=?= ASP .Net 0 04-28-2004 06:11 PM



Advertisments