Click here to Skip to main content
15,943,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to make a superadmin and admin . SuperAdmin can edit anything in project while the admin can do some editings only . So What i have to do for that . I am using form Authentication and dont want to to use the Windows Administration . Please reply
Posted

1 solution

Have a look into ASP.Net membership and roles, this is custom built and solves exactly what you want to do

http://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx[^]

Using the Membership API, you could create a number of roles and assign users into those roles.
 
Share this answer
 
Comments
Vimalrashamra 23-Aug-11 7:24am    
I dont want to use the Asp.net Roles and assign users because I am using MYSql
Dylan Morley 23-Aug-11 7:26am    
The beauty about using the Membership API is that you can define your own providers and have the user and roles information come from anywhere at all.

e.g. MySQL Membership Provider

http://www.codeproject.com/KB/database/mysqlmembershipprovider.aspx

The underlying authentication scheme for your application stays the same, but you could use ANY source to provider the user and group information. SQL Server, XML, MySql - whatever you want!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900