Re: IsInRole not as expected

From: charles (charles@synthigence.com)
Date: 01/30/03


From: "charles" <charles@synthigence.com>
Date: Thu, 30 Jan 2003 09:03:18 -0800


Thanks...
It looks like the Name and IsAuthenticated are part of the context but roles
are not... so I need to reread the cookie in order for the roles to be
reflected in my own app.

charles

"Kim Bach Petersen" <msnews@kensho.dk> wrote in message
news:#Brjo1DyCHA.1580@TK2MSFTNGP09...
> > HttpContext.Current.User.IsInRole("Admins")
>
> A blind guess: The IsInRole-function is added to the context in
global.asax,
> its not a defalut function of the page class - that is, make sure the
useres
> roles are added to the context in both global.asax-files.
>
> Kim :o)
>
>



Relevant Pages

  • Re: WBC-by-WBC session manipulation
    ... constituted a 'cookie context': is it possible to alter the cookie ... context of one WBC within an application without altering the cookie ... context of another WBC instance within the same application? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Cutom authentication plugin using cookies
    ... that once you login sets a cookie on the ... WMP opens and my authentication plugin gets called. ... Problem - I am looking in the user context and not seeing my cookie - I have ... server on port 80 on that box, is the cookie valid in that context, at ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Revise, review, revisiting
    ... To reread a text and make changes to it. ... I have only seen 'revise' and 'revision' in this sense in the ... context of an exam or test, ...
    (alt.usage.english)
  • Re: Police Raiding to Prove or Disprove
    ... Alex Heney wrote: ... in order to make a point that was obviously not born out if the ... context was left in. ... Which is exactly what Kim did this time ...
    (uk.legal)
  • Re: Which installer is better?
    ... > Then the people behind the WinLAMP project must be half-baked in naming ... The common abbreviations in this context are: ... Thanks Kim, ...
    (comp.lang.php)