Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: How to make the authentication with multi user-defined roles ?


Message #1 by "Ngo Dinh Nghia" <nghiangodinh@y...> on Wed, 30 Jan 2002 04:43:33
> Hi all,
> 
>    I want to make the website with some pages can be accessed by some 
> users.


What I do (for what it's worth) is set up access to the website in general 
(using Forms Authentication, Passport, etc. whichever is most appropriate 
to my security needs).  I also create a database (or some other data 
store) with specific permission flags for each user. Then in the page load 
section of each page I determine if the user has the rights to the page, 
if so all is well, if not I redirect them to a page indicating their lack 
of permissions, or to the referring page, whichever is more appropriate.  

If someone know of a better way, I would like to know about it too.

David

"Cleopatra was bitten by an asp.  Don't let it happen to you..."

  Return to Index