return-url

Why does my asp.net membership login page not work with a redirect?

I have this membership site setup on my local machine using the ASP.NET membership provider. When I go to: http://localhost/admin/ It redirects me to http://localhost/Login.aspx?ReturnUrl=%2fadmin%2fDefault.aspx Which is fine. But after I put in my login information, the page just seems to refresh. It doesn't actually log me in, ...

How to implement the returnurl like SO in PHP?

It should also work after url rewriting. Is it possible?Otherwise I can only hardcode everything. ...

Using a colon (:) in return URL with Forms Authentication ("The return URL specified for request redirection is invalid")

I am getting the error "The return URL specified for request redirection is invalid" when using forms authentication. I found this thread that says this is a known issue with return URLs that contain colons (mine indeed contains a few). The workaround in that thread is to catch the error and use a default return URL ... hardly an accept...