title: Programmatic Logon to Crystal Reports Server
body: <p>I have a Web Forms app that uses forms authentication. I have a Crystal Reports Server 2008 V1 server with InfoView .NET installed and working. I have some Enterprise accounts setup. EDIT: I should mention that my Web Forms app is on a different server from Crystal Reports Server.</p>
  
  <p>I need to know how to log on to InfoView .NET programmatically on my custom ASP .NET page (C#) and then transfer the user to InfoView without them having to type in the logon information.</p>
  
  <p>Something like this would be nice (C#):</p>
  
  <pre><code>string username = "blah";
  string password = "asdf";
  
  // create logon token for crystal reports server
  // .. // this is the code I need
  Response.Redirect(url);
  </code></pre>
  
  <p>I did find <a href="https://stackoverflow.com/questions/1594790/crystal-reports-server-2008-how-do-you-create-a-aps-logon-token-programtically">this question</a>, which gets me partway there, but it doesn't tell me how to pass the token to InfoView .NET. Some older docs also mention needing a cookie. I've also found other sites that show how to pass it to Java InfoView, but I need the .NET version.</p>