title: How to keep cookies from expiring even after browser restart in CakePHP application
body: <p>I have en e-commerce cakephp (v 1.3) app where customers can add stuff to a cart. As long as the user doesn't exist the browser or the session timeout period isn't exceeded, the session variables defining the cart contents stays stored. But if they close the browser (IE/Firefox) the cart gets empty since the cookie gets destroyed. Oddly enough, Chrome doesn't have this problem which is another mystery.</p>
  
  <p>I've tried to change the Session.cookieTimeout variable in the /app/config/core.php file but that doesn't have any effect. Whenever I pull up the cookie information on the browser dev tools it shows the cookie name "PHPSESSID" and expiration keeps showing "when the session ends".</p>
  
  <p>I've also tried overwriting cookie expiration time in the AppController beforeFilter() function with $this->Cookie-$time but that didn't do anything either to define the session cookie timeout.</p>
  
  <p>My guess is some setting keeps the cookie timeout set to 0 which is the default setting for session ends when browser closes. </p>
  
  <p>What other things should I try to keep the cookies from getting destroyed when a user closes the browser?</p>