My system has different users, superadmin, admin, member, anonymous user.
In some pages, I want only admin users to login. If member logs in, I don’t want to redirect them to destination URL.
How can I stop the redirect?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t recall the native ASP.NET MembershipProvider allows different redirect locations/behaviors after succssful login. You probably need to implement your own login logic. E.g:
The above code referenced from MSDN Forms Authentication in ASP.NET 2.0