title: codeigniter cookie helper combined with session helper
body: <p>Is it possible to run both session and cookie helpers? Cause I am trying and I can't get a cookie to set for the life of me, no matter what method I try either falling CI's docs to the letter and doing it there way or attempting to work with cookies through native php alone. Either way I try cookies will not set. </p>
  
  <p>I have tried to set them like:</p>
  
  <pre><code>$this-&gt;input-set_cookie('AutoRemember', $mID.'-'.$hashbrown, $shortlife);
  and
  setcookie('AutoRemember', $mID.'-'.$hashbrown, $shortlife);
  </code></pre>
  
  <p>and I have tried to work with them like</p>
  
  <pre><code>echo $this-&gt;input-&gt;cookie('AutoRemember');
  and
  echo $_COOKIE['AutoRemember'];
  </code></pre>
  
  <p>the cookie helper is auto loaded just as is the session one, so they are loaded. session helper works like a charm, but the cookies I got nothing but a headache. All I want to do is set a cookie so I can have a "remember me" function on my site, and what should be a 5 minute deal to do, has taken me hours of various ways of passing it either by setting something for a view to pick up so it can set it in a view, or setting it in the controller and nothing.</p>
  
  <p>Doesn't appear to be a browser issue either as both Chrome, and FireFox seem to not have a cookie getting stored anywhere.</p>
  
  <p>So is it something with using both sessions and cookies or is codeigniter garbage when it comes to setting a cookie and kills the effort no matter which way you try.</p>