c# - Deny normal users to access administrator area in ASP.NET -
okay have 2 folders in asp.net project. 1 users, , other 1 administrators... idea once normal user logs system via username & password, won't able access admin folder. thinking work:
<configuration> <system.web> <authorization> <allow roles="admins"/> <deny users="*"/> </authorization> </system.web> </configuration>
but i'm having issues on how mark normal normal, , administrator admin normal user can't access admin area (folder)? believe done through code while normal user logs system, how??
can me out ?
p.s. database tables admins , users separated in case...
Comments
Post a Comment