title: How to set and get Cookies in Cakephp 3.5
body: <p>I have read the Cakephp documentation but it doesn't working well.
  Here is my code,</p>
  
  <pre><code>$this-&gt;response = $this-&gt;response-&gt;withCookie('remember_me', [
      'value' =&gt; 'yes',
      'path' =&gt; '/',
      'httpOnly' =&gt; true,
      'secure' =&gt; false,
      'expire' =&gt; strtotime('+1 year')
  ]);
  $rememberMe = $this-&gt;request-&gt;getCookie('remember_me');
  </code></pre>