> First We have to create Folders, For example publishers, Admin
Than we have to paste the following code:-
<location path="ADMIN">
<system.web>
<authorization>
<allow roles="ADMIN"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="Publishers">
<system.web>
<authorization>
<allow roles="PUBLISHER,ADMIN"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
references:- https://itecnote.com/tecnote/redirect-user-to-mulitple-login-pages-using-asp-net-membership/
http://www.codedigest.com/Articles/ASPNET/176_Using_Roles_in_Forms_Authentication_in_ASPNet_20.aspx
No comments:
Post a Comment