I have tried this in all browsers and it works in all but IE. Here is the scenario:
at Host A Page 1 we will redirect you to host B when you click on the link:
<%@Page Language="C#"%>
<script runat=server>
override protected void OnLoad(EventArgs e)
{
if (Request.QueryString["l"] != null)
Response.Redirect(Request.QueryString["l"]);
}
</script>
<a href="tk.aspx?l=http://HOSTB/landingpage.aspx">redirect to a different domain</a>
</code>
</pre>
At HostB.page_ Host, when you arrive without a cookie, we set a cookie and redirect you to the relative URL /landingpage.aspx :
<%@Page Language="C#"%>
<script runat=server>
override protected void OnLoad(EventArgs e)
{
if (Request.Cookies["PHPSESSID"] == null)
{
Response.Cookies.Add(new HttpCookie("PHPSESSID", "set"));
Response.Redirect("/landingpage.aspx");
}
}
</script>
<h1>you made it to <% = Request.Url.Host%></h1>
In all the browsers I tried, you get to HOSTB / targage.aspx. However, in IE you get to HOSTA / targage.aspx.
, , HOSTB URL-, url , rub: 't HOSTB, .
?
, , IP, Name . , 10.0.20.10/landingpage.aspx, XPS730.
