Redirecting From One Page to Another After Sending Login Credentials
<p>While I'm logged into a web application 1, I would like to navigate to web application 2 without explicitly logging on manually. </p>

<p>In application 1 I have an OnClick that gathers up my current login credentials and attempts to POST them to applications 2:</p>

<pre><code>        long timestamp = DateTime.Now.Ticks;
    string userName = currentUser.Credentials.UserName;
    string accountName = currentUser.Account.Name;
    string ssoUrl = AppUtil.SalesViewSsoUrl;
    var ssoKey = new Guid(AppUtil.SalesViewHashKey);

    // Build request
    System.Net.WebRequest request = System.Net.WebRequest.Create(ssoUrl);
    string postData = BuildPostString(userName, accountName, timestamp.ToString("x"), ssoKey);
    byte[] postDataBytes = Encoding.Default.GetBytes(postData);

    //Request.Headers.Add("SSOParams", postData);
    //request.Method = "POST";
    //request.ContentType = "application/x-www-form-urlencoded";
    //request.ContentLength = postDataBytes.Length;/

    //Stream sOut = request.GetRequestStream();
    //sOut.Write(postDataBytes, 0, postDataBytes.Length);
    //sOut.Flush();
    //sOut.Close();
</code></pre>

<p>So, the problem here is that I remain on the same page. I can't figure out how to do that basic operation but stay on the newly logged-in application 2 page.</p>

<p>Is there any other way to send those parameters over without putting them in a query string? I want to avoid that. </p>

<p>Any assistance is appreciated.</p>
