title: How to get cookie or session via snoopy class?
body: <p>I want to login to other website and find some information about my account. So i used snoopy class to login. </p>
  
  <pre><code>$snoopy=new snoopy;
  $url="http://website.com/login";
  $index="http://website.com";
  
  $info['txtUserId']="$username";
  $info['txtPassword']="$password";
  $snoopy-&gt;submit($url,$info);
  $snoopy-&gt;setcookies();
  $snoopy-&gt;fetch($index);
  $result = $snoopy-&gt;results;
  $header = $snoopy-&gt;headers;
  echo print_r($snoopy-&gt;headers, TRUE);
  echo $result;
  </code></pre>
  
  <p>And next is the problem. other page that represent information i want isn't work because session didn't be maintained.</p>
  
  <p>There is no session information in headers array. To find some information, i have to maintain Session. </p>
  
  <p>But i don't know how to find Session. Is there any method to find cookie or session in  snoopy class? i make an effort to find how to do, but i couldn't find it! Please let me know!</p>