Re: role based security

From: Polux (epolux@hotmail.com)
Date: 07/23/02


Date: Tue, 23 Jul 2002 15:52:14 -0300
From: Polux <epolux@hotmail.com>


You must load the roles every time a page is called, during the
AuthenticateRequest event of Global.asax (HttpApplication class). Are
you doing this?

Hazim Dikenli wrote:
> Hi all,
> I am using Forms Authentication, and after a user logs in, I load the roles
> base on their account. Basically, I am trying to achieve a role-based
> security, the samples given do the authorization check on Page_Load event,
> but I would rather specify the page level roles in the web.config file and
> let the ASP.NET do the authorization for us. I tried to do this and could
> not get it working, so I wonder if roles only apply for Windows
> Authentication, if not, do you have any idea, any sample, any piece of code
> to help me thru.
> Thanks for reading my post, and I will be so darn happy if you reply me
> back.
>
> Peace:)
> Hazim
>
>
> I specify page-level role acces in the web.config file,
>
>