title: "Global variable" that can be accessed by others action in controller
body: <p>I'm making a web version of a <code>WPF</code> program. The program is basically a robot that uses the Selenium WebDriver.</p>
  
  <p>I need to use the same <code>ChromeDriver</code> instance beetwen`Actions (code below).</p>
  
  <p><strong>The question is how can I use the same instance of <code>WebDriver</code> in others Action Functions, being available only to the user who submitted the request?</strong></p>
  
  <p>I tried using <code>DI</code> (<code>.AddSingleton()</code>) and static class, but the instance is not unique to each user.</p>
  
  <p>It's my first app using <code>.ASP NET</code>, sorry if there are any mistakes.</p>
  
  <p>The following 2 routines are called via ajax after a button is clicked.</p>
  
  <pre><code>[HttpPost]
  public IActionResult Login(SEIInfo model)
  {
      //Routine to do login on website using SeleniumDriver()
  }
  
  [HttpPost]
  public IActionResult StartCapturing(...)
  {
      //Capture some DOM Element's texts with SeleniumDriver()
  }
  </code></pre>