title: Codeception - Can't save and load session snapshot in Firefox
body: <p>I have a loggin method that can save session snapshot for future calls. </p>
  
  <pre><code>public function loggedInIntoFrontend($name, $password)
  {
      $I = $this-&gt;driver;
      // if snapshot exists - skipping login
      if ($I-&gt;loadSessionSnapshot('login')) {
          return;
      }
      // logging in
      $I-&gt;amOnPage(LoginPage::getUrl());
      $I-&gt;submitForm(
          LoginPage::$form,
          [
              '_username' =&gt; $name,
              '_password' =&gt; $password,
          ],
          LoginPage::$btnLogin
      );
      $I-&gt;see('Autotest');
      // saving snapshot
      $I-&gt;saveSessionSnapshot('login');
  }
  </code></pre>
  
  <p>I use it in my Cests in <code>_before()</code> method. Like here:</p>
  
  <pre><code>class OrderFlowCest
  {
      public function _before(AcceptanceTester $I)
          {
              $I-&gt;loggedInIntoFrontend(LoginPage::LOGIN, LoginPage::PASSWORD);
          }
  }
  </code></pre>
  
  <p>It's possible that I use it in a few Cests.
  In Chrome it works fine. But when I try to run my Cests in environment with Firefox - I got this error:</p>
  
  <blockquote>
    <p>[Facebook\WebDriver\Exception\InvalidCookieDomainException] You may
    only set cookies for the current domain Build info: version: '2.53.1',
    revision: 'a36b8b1', time: '2016-06-30 17:37:03' System info: host:
    '5-255-93-81', ip: '5.255.93.81', os.name: 'windows', os.arch: 'x86',
    os.version: '10.0', java.version: '1.8.0_101' Driver info:
    driver.version: unknown</p>
  </blockquote>
  
  <p>Has anyone encountered this?</p>