title: CodeIgniter Setting cookies, cookies not setting
body: <p>I've searched here and on google before asking this cause I see its a popular question, but the answers I have found I have tried, and still I am failing.</p>
  
  <p>This is my attempt to set the cookies (note the helper is autoloaded)</p>
  
  <pre><code>$longlife = 60*60*24*60; //60 days
  $shortlife = 60*60*24*10; //10 days
  $this-&gt;input-&gt;set_cookie('AutoRemember', $user.'::'.$hashbrown, $shortlife, '.example.com', '/');
  $this-&gt;input-&gt;set_cookie('LongRemember', $user.'::'.$hashbrown, $longlife, '.example.com', '/');
  </code></pre>
  
  <p>when I attempt to do a var_dump on '$this->input->cookie()` i get bool false as an output, meaning no cookies found. This is the first time i've tried using cookies with CI so the issue is beyond me at the moment. </p>
  
  <p>also note I changed the real domain in the example above to example.com as I don't want the domain to show up in searches right now.</p>