RE: Windows Authentication : switching user
From: Simon Turmel (sturmel_at_polygon.ca)
Date: 04/05/04
- Next message: Kevin Watkins: "Forms Authentication and Differences Between Windows Explorer and IE"
- Previous message: Jim Cheshire [MSFT]: "RE: Windows Authentication : switching user"
- In reply to: Jim Cheshire [MSFT]: "RE: Windows Authentication : switching user"
- Next in thread: Jim Cheshire [MSFT]: "RE: Windows Authentication : switching user"
- Reply: Jim Cheshire [MSFT]: "RE: Windows Authentication : switching user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 05 Apr 2004 10:44:11 -0700
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: Kevin Watkins: "Forms Authentication and Differences Between Windows Explorer and IE"
- Previous message: Jim Cheshire [MSFT]: "RE: Windows Authentication : switching user"
- In reply to: Jim Cheshire [MSFT]: "RE: Windows Authentication : switching user"
- Next in thread: Jim Cheshire [MSFT]: "RE: Windows Authentication : switching user"
- Reply: Jim Cheshire [MSFT]: "RE: Windows Authentication : switching user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|