I configured ASP.NET membership and created some users as well as a protected folder.
now, what’s weird is that after being successfully authenticated, instead of going to the protected page, the login page is loaded again.!
for example, I have a role “HR” and a user “hr1” who is a member of “HR”. I have a protected folder “HR” which is supposed to be accessible only to “HR” group.
now, when trying to access the protected folder, I’m redirected to the login page which is a good thing. but after, I give the right login and password, I’m not redirected to the page I tried accessing in the first place.
I had this the other day – have you correctly edited the web.config settings, rather than cut and pasted? 🙂
The important part in the following is the ‘Path=”/”‘ attribute – the examples have it set to “/admin” and by default will cause the redirect to login page issue if /admin doesn’t exist.