title: How to get cookie set by htaccess file on first load
body: <p>I need to get cookie value on first load of page, I know cookie can be retrieved on second load.</p>
  
  <p>I need this as I want to redirect based on cookie value set by server htaccss file.</p>
  
  <p>I set cookie this way in htaccess file.</p>
  
  <pre><code>RewriteRule ^ - [CO=fullsite:yes:.example.com]
  </code></pre>
  
  <p>I want to fetch the value in php. I know only this way but this give me cookie value on second load.</p>
  
  <pre><code>if(isset($_COOKIE['fullsite'])&amp;&amp;$_COOKIE['fullsite']=='yes'){
      echo $_COOKIE['fullsite'];
  }
  </code></pre>
  
  <p>Is there a way around to get cookie value from server the first time the server sends cookie please suggest.</p>
  
  <p>Thanks.</p>