Hi,
Because I'm using form based authentication, a user accessing protected pages of my website, he is redirected to the login page. As you know, ASP.NET automatically assigns the returnUrl querystring to the page, such as:
http://www.somewebsite.com/login.aspx?ReturnUrl=protected.aspx
However, I do not redirect users back to the page that sent them to login.aspx in the first place. Instead, I send everyone to index.aspx (see below):
FormsAuthentication.SetAuthCookie(txtUserName.Text, False)
Response.Cookies.Add(authCookie)
Response.Redirect("index.aspx")
The problem is, is there a way to get rid of the returnUrl since (1) I'm not using it anyway, and (2 ...
Go to the complete details ...