Wednesday, January 27, 2010

Disable ?returnUrl for ASP.net Membership

After users pass the Basic Authentication, the url appends the ?returnUrl=login.aspx. And this redirects the user to login page after they logged in.

Here are two posts that can solve the problem.

1. Call Response.redirect to the destination URL:
http://www.velocityreviews.com/forums/t367373-remove-returnurl-from-url.html

2. Remove the returnUrl part in the login page:
http://ordinastage.blogspot.com/2007/05/aspnet-membership-returnurl-problem.html

No comments: