Is there an easy way to get forms authentication to ignore the returnURL?
So the user clicks a link, the site timesout, they get redirected to my login page (which appends ReturnUrl to the URL) – I don’t want this to happen, or for it to be ignored when they login again.
One option is to have some code in your login form’s code-behind that does the following:
In other words, check in your login page for the presence of the returnUrl querystring parameter and if it’s present, strip it out by redirecting back to yourself.