title: Codeigniter 4 cookies issue not able to set
body: <p>This is my controller code.  I am not able to set and get the cookies in Codeigniter 4.</p>
  
  <pre><code>helper('cookie');
  $this-&gt;response-&gt;set_cookie('forgetpwd',$token, time() + (3600),"/",site_url());
  print_r($this-&gt;request-&gt;get_cookie('forgetpwd'));
  die();
  </code></pre>