title: Pass Authenticated Session In Another Request in ASP.NET
body: <p>I am using ABCPDF.net to render my HTML to PDF pages, but I want to protect these using the current authenticated session.  However, the request to get the HTML to render the PDF doesnt carry over the session, but creates a new one.  I am using ASP.NET Membership, and passwigin the session ID and creating a cookie on the ASP.NET request.</p>
  
  <pre><code>    var sessionId = HttpUtility.ParseQueryString(Url)["sid"];
  
      if(sessionId != null)
      {
          doc.HtmlOptions.HttpAdditionalHeaders = string.Format("Cookie: 
                                      ASP.NET_SessionId={0}", sessionId);
      }
  </code></pre>
  
  <p>I read this in ABCPDF.net documentation and am doing just that, but the request always uses a different session.</p>
  
  <p><a href="http://www.websupergoo.com/helppdf8net/source/5-abcpdf/xhtmloptions/2-properties/httpadditionalheaders.htm" rel="nofollow">httpadditionalheaders</a></p>
  
  <p>Do I need to pass something else, or can I do something else?</p>