Hi,

if you are using ASP.NET 2.0 this may help you:


Cache roles in the roles cookie by setting the cacheRolesInCookie
attribute to true in the Web.config file as shown here.

<roleManager enabled="true"
             cacheRolesInCookie="true"
                 ... >
</roleManager>

When role checks are performed, the roles cookie is checked before
calling the role provider to check the list of roles within the data
source. This improves performance. The cookie is dynamically updated
to cache the most recently validated role names. If the role
information for a user is too long to store in a cookie, ASP.NET
stores only the most recently used role information in the cookie and
then it looks up additional role information in the data source as
required. The most recently referred to roles end up being cached in
the cookie.

[Source: 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/PAGGuidelines0001.asp]

Regards,
Michael


On 6/20/06, Stanley <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I tested on AjaxPro.Services.Authentication.Login, it works prefectly!
> But if i using the ordinally ASP.NET form authentication method and
> apply [PrincipalPermission(SecurityAction.Demand, Role = "Admin")] on
> AJAX method, it seems not working. I tried to retrieve Role that i
> assigned by accessing UserData on   FormsAuthenticationTicket class, it
> shows that 'Admin' role. This means i successfully apply role on the
> FormsAuthenticationTicket's ticket. Anyone know how to solve this
> issue?
>
> cheers,
> Stanley
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to