title: Getting cookies via Selenium and php
body: <p>I want to find out (via PHP) which third-party cookies are set when you visit a particular site, for example www.google.com.</p>
  
  <p>I understand that one can use Selenium to do that, but I can't find any info about exactly how it's done.</p>
  
  <p>Do you know how to get all cookie data from a webpage by using Selenium via php?</p>
  
  <p>Like:</p>
  
  <pre><code>&lt;?php
  $url = "http://www.google.se";
  ..... run the webpage with a non graphic browser ......
  $cookies = all_cookies;
  ?&gt;
  </code></pre>