Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 3505 |  Welcome, Guest!   Register  Login
  Home > Community Home >

How to handle WWW-Authenticate header in asp.net code

 Author: Holysmokes | Posted on: 6/19/2008 6:52:05 AM | Views: 126

Recommend an Articles | Recommended Articles | Search Resources | Community Home |




Hi I am trying to implement "Sign In as a different user" functionaly which is similar to sharepoint implementation in my website

I can able to produce the password dialogue box by using the following code but don't know how to proceed

        Response.Clear()
        Response.Buffer = True
        Response.Status = "401 Unauthorized"
        Response.AddHeader("WWW-Authenticate", "NTLM")
        Response.End()

the else part in the following code never works. I tried to replace with session variable instead of viewstate with no remedy.

Anybody shed some light on this please. Remember in my web site the users are already authenticated with windows integrated authentication (anonymous disabled) and I just wanna to impl ... Go to the complete details ...

Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/18/2013 10:37:53 PM