.net - how to create a authentication rule if i use seperate login for two folders say admin folder and vendor folder -
i have following directory structure in asp.net webdirectory !
i want when body access anypage inside admin folder auto redirect login page of admin folder until login ... using login page ...
add in configureation section of web.config
<location path="admin"> <system.web> <authorization> <deny users="?"/> <allow roles="super admin"/>//you can allow specific roles access folder </authorization> </system.web> </location> <authentication mode="forms"> <forms name="signin" loginurl="~/login.aspx" defaulturl="~/default.aspx"/> </authentication>
Comments
Post a Comment