RE: Windows Authentication : switching user

From: Jim Cheshire [MSFT] (jamesche_at_online.microsoft.com)
Date: 04/05/04


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!
>



Relevant Pages

  • RE: Windows Authentication : switching user
    ... I use an hyperlink to reload the page with a new URL ... parameter and then in my web page codebehind, ... TIA, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Visio 2000 - Slow to Load
    ... > Han anyone encountered this before? ... My IT people want to reload the ... but I am remote and have not had a chance to get to a site to ...
    (microsoft.public.visio)
  • Re: error handler
    ... It's only one button on my form that calls the bound routine so another ... button immediately after with a hyperlink to the file can be a way to open ... the worksheet and do what's necessary manually. ... in and doesn't get the chance to carry on. ...
    (microsoft.public.word.vba.general)
  • Re: [PATCH] block: always requeue !fs requests at the front
    ... Jens Axboe wrote: ... comment then a hyperlink. ... There's just too much chance of the latter ... breaking over time, and it's impossible to update it when things change ...
    (Linux-Kernel)
  • Re: Laptop boots to Blue screen of death
    ... Would you reformat the Hard Drive once the data was collected. ... then reload ... My long winded question is, is there a chance that I can take the HD ...
    (comp.sys.laptops)