title: Codeigniter 2.1 $this->input->set_cookie($some_var); NOT WORKING
body: <p>I started creating a custom library that i would load for checking if user is logged in and also for registering users. Registration not started yet, but that's not important...</p>
  
  <p>here's the problematic part.. <strong>it WON't set cookies:</strong></p>
  
  <pre><code>$this-&gt;load-&gt;helper('cookie');
  $some_value= 'asd';
  $some_cookie_array = array(
                            'name'   =&gt; 'some_name',
                            'value'  =&gt; $some_value,
                            'expire' =&gt; 86500,
                            'secure' =&gt; TRUE
                            );
  $this-&gt;input-&gt;set_cookie($some_cookie_array);
  </code></pre>
  
  <p>here is the full code for now:
  <a href="http://codepad.org/FILlq2qR" rel="nofollow">codepad.org/FILlq2qR</a></p>
  
  <p>This is how i call the library and check if user is logged in:</p>
  
  <pre><code>$this-&gt;load-&gt;library('user_management');
  $login_data = $this-&gt;user_management-&gt;login();
  var_dump($login_data);
  </code></pre>
  
  <p>Any help is more than welcome!</p>
  
  <p>Cheers!</p>