impersonate in global.asax.cs instead of page load
From: Ed leNoir (EDLENO@safeco.com)
Date: 10/31/02
- Next message: Joseph Geretz: "SOLVED: How do I give ASP.NET process network credentials?"
- Previous message: Ed leNoir: "Re: ASP.NET security issue"
- Next in thread: Mike Moore [MS]: "RE: impersonate in global.asax.cs instead of page load"
- Reply: Mike Moore [MS]: "RE: impersonate in global.asax.cs instead of page load"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: EDLENO@safeco.com (Ed leNoir) Date: 30 Oct 2002 21:32:48 -0800
I thought I could do an Impersonate in a global event but it doesn't
seem to work. By the time the page loads the current identity is back
to the default value. I can do the impersonate in the page load event
and everything works.
The Microsoft samples also use page load, but I thought doing the
impersonate in BeginRequest would do the trick.
At what point is the thread created for a page/request? I'd like to
centralize the code in the global.asax.cs. Page load can work too, but
it just seems it should work as an application event.
(I've also tried the SetThreadIdentity in ApplicationStart (and
BeginRequest) but neither of those worked. )
- Ed
- Next message: Joseph Geretz: "SOLVED: How do I give ASP.NET process network credentials?"
- Previous message: Ed leNoir: "Re: ASP.NET security issue"
- Next in thread: Mike Moore [MS]: "RE: impersonate in global.asax.cs instead of page load"
- Reply: Mike Moore [MS]: "RE: impersonate in global.asax.cs instead of page load"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|