title: How to open browser and then kill it?
body: <p>I'm implementing a OAUTH-type of authentication for a desktop application and in this process I need to open a webbrowser and then close it when token has been collected.</p>
  
  <p>I've tried with this: </p>
  
  <pre><code>var p = Process.Start(new ProcessStartInfo(url));
  ...
  p.Kill(); //this won't work as p is null = no new process started
  </code></pre>
  
  <p>According to <a href="https://msdn.microsoft.com/en-us/library/0w4h05yb(v=vs.110).aspx" rel="nofollow">the documentation</a>:</p>
  
  <blockquote>
    <p>If the process is already running, no additional process resource is started. Instead, the existing process resource is reused and no new Process component is created. In such a case, instead of returning a new Process component, Start returns <code>null</code> to the calling procedure.</p>
  </blockquote>
  
  <p>Indeed, the page is just opened as a new tab in Chrome (my default browser) process that I've already have opened.</p>
  
  <p>Any ideas on how to open a new process of the default browser that I can kill?</p>