A
Author
In my asp.net 3.5 web application (in C#), I am using a custom
RoleProvider.
In order for only Admin users to be able to access the Admin folder, I
have this in my web.config
<location path="Admin">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
It works.
But, when an non-Admin user tries to access anything under Admin, he
or she will be kicked back to the Login page.
This is undesirable. Ideally, the user should be kicked back to where
he or she was.
How to do this please? Thank you.
RoleProvider.
In order for only Admin users to be able to access the Admin folder, I
have this in my web.config
<location path="Admin">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
It works.
But, when an non-Admin user tries to access anything under Admin, he
or she will be kicked back to the Login page.
This is undesirable. Ideally, the user should be kicked back to where
he or she was.
How to do this please? Thank you.