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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -