RE: Windows Authentication : switching user
From: Jim Cheshire [MSFT] (jamesche_at_online.microsoft.com)
Date: 04/05/04
- Next message: Simon Turmel: "RE: Windows Authentication : switching user"
- Previous message: Kevin Watkins: "Forms Authentication and Differences Between Windows Explorer and IE"
- In reply to: Simon Turmel: "RE: Windows Authentication : switching user"
- Next in thread: Simon Turmel: "RE: Windows Authentication : switching user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 05 Apr 2004 19:25:47 GMT
Simon,
I'll do some more looking as soon as I get a chance, but just right off, it
could be due to the fact that you're not doing a Response.End after sending
the status. For example:
if(Request.QueryString["ChangeUser"] != null)
{
Response.Status = 401;
Response.End;
}
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
jamesche@online.microsoft.com
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
>From: Simon Turmel <sturmel@polygon.ca>
>References: <8U4LnDyGEHA.3436@cpmsftngxa06.phx.gbl>
>X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
>Subject: RE: Windows Authentication : switching user
>Mime-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>Content-Transfer-Encoding: 7bit
>Message-ID: <ejN4bWzGEHA.2708@TK2MSFTNGP11.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>Date: Mon, 05 Apr 2004 10:44:11 -0700
>NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
>Lines: 1
>Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP11.phx.gbl
>Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.security:9517
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>It's really simple. I use an hyperlink to reload the page with a new URL
>parameter and then in my web page codebehind, I check if the parameter
>is not null. If so, I send a 401 to force the reauthentication.
>
>
>if( Request.QueryString["ChangeUser"] != null )
>{
> Response.StatusCode = 401;
>}
>
>I get the windows authentication dialog, but I have to click OK 3 times
>before it goes away. Apart from this, everything is fine, the user is
>changed.
>
>
>TIA,
>Simon
>
>*** Sent via Developersdex http://www.developersdex.com ***
>Don't just participate in USENET...get rewarded for it!
>
- Next message: Simon Turmel: "RE: Windows Authentication : switching user"
- Previous message: Kevin Watkins: "Forms Authentication and Differences Between Windows Explorer and IE"
- In reply to: Simon Turmel: "RE: Windows Authentication : switching user"
- Next in thread: Simon Turmel: "RE: Windows Authentication : switching user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|