Redirect To A Url With Header Information Javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6388066/javascript-redirect-with-headers-or-session-id">Javascript redirect with headers or session id</a>  </p>
</blockquote>



<p>How do I add header information in a redirect with javascript..</p>

<p>I redirect like this I think (not sure)..</p>

<pre><code>  window.location.replace('https://anotherWebSite.com');
</code></pre>

<p>No I wanna add header information to it containing a userID="whatever" so when the redirect happens it will be available to anotherWebsite.com through this code for example..</p>

<pre><code>   NameValueCollection headers = base.Request.Headers;
            for (int i = 0; i &lt; headers.Count; i++)
            {
                if (headers.GetKey(i).Equals("userID"))
                {

                    _myID = headers.Get(i);
                }


            }
</code></pre>
