Re: Method SetThreadPrincipal
From: Nicole Calinoiu (calinoiu)
Date: 05/17/05
- Next message: vibs: "Security App Block"
- Previous message: Oriane: "Re: Method SetThreadPrincipal"
- In reply to: Oriane: "Re: Method SetThreadPrincipal"
- Next in thread: Oriane: "Re: Method SetThreadPrincipal"
- Reply: Oriane: "Re: Method SetThreadPrincipal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 17 May 2005 14:16:08 -0400
I'm guessing that there's probably no reason for more than one thread to be
running after the user logs off since the applicaiton is presumably just
sitting around waiting for another user to log in. If I'm right about this,
your best bet may simply be to explicitly set the principal for each thread
as you initialize it in your code. If there's some additional requirement
that would make this impractical, could you please explain?
"Oriane" <Oriane@Guermantes.com> wrote in message
news:e7c%23PHwWFHA.3324@TK2MSFTNGP09.phx.gbl...
>> Why would you want to do this, particularly given that you're probably
>> not
>> actually using all threads in the pool? Perhaps if you could describe
>> the
>> scenario in which this principal change is being made, someone might be
> able
>> to suggest a better mechanism...
> It's very simple indeed. An applicative user logs in on my application,
> which has of course many threads, and I use the .NET mechanism for the
> .NET
> role based security, base on a generic principal, that I set with
> SetThreadPrincipal. It seemed to me that it was the "canonical" process.
>
> A user may want to log out. I agree that a logout could be seen as en
> applicatin exit. But the people from the business layer ask me for a
> logout
> function.
>
> Anyway if this is impossible, I suppose this is for good reasons and I
> don't
> want to waste my time trying to bypass the standard mechanism.
>
> Thanks a lot
>
>
- Next message: vibs: "Security App Block"
- Previous message: Oriane: "Re: Method SetThreadPrincipal"
- In reply to: Oriane: "Re: Method SetThreadPrincipal"
- Next in thread: Oriane: "Re: Method SetThreadPrincipal"
- Reply: Oriane: "Re: Method SetThreadPrincipal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|