Our ZenCart site had been running on the default 24 minute Session interval at which time non logged user’s carts would be cleared as defined in includes/functions/sessions.php

Yesterday I was able to change that to 24 hours on our DEV test site and it worked all day long without issue.

In the sessions.php file, this was the original 24 minute code:

PHP Code:
if (STORE_SESSIONS == 'db') {
    if (
defined('DIR_WS_ADMIN')) {
      if (!
$SESS_LIFE = (SESSION_TIMEOUT_ADMIN 900)) {
        
$SESS_LIFE = (SESSION_TIMEOUT_ADMIN 900);
      }
    } else {
      if (!
$SESS_LIFE get_cfg_var('session.gc_maxlifetime')) {
        
$SESS_LIFE 1440;
      }
    } 
I changed it to the following to last for 24 hours:
PHP Code:
 if (STORE_SESSIONS == 'db') {
    if (
defined ('DIR_WS_ADMIN')) {
      if (!
$SESS_LIFE = (SESSION_TIMEOUT_ADMIN 900)) {
        
$SESS_LIFE = (SESSION_TIMEOUT_ADMIN 900);
      }
    } else {                                                                                                                   
        
$SESS_LIFE 86400;                                              
    } 
I tested in IE, Firefox, Mozilla and Chrome where I would close the browser and come back an hour, 2 hours, 3 hours later and the shopping cart would be full.

Today, both of our sites Live and Dev are automatically clearing a user’s cart (non logged in) when the browser is closed and re-opened.

I restored the original file that was edited, no luck. I also checked a 3rd ZenCart Site that I set up for 1.50 that hasn’t been touched in 2 months and that’s doing the same thing, so at this point I do not think the issue is the result of the file change.

I also found the following on Zen Cart's site:
http://www.zen-cart.com/content.php?317-cookies

"In a traditional configuration, and by definition, this session cookie expires at the end of the visitor's session in the browser, or at a predefined time (typically 24 minutes) after their last "click", whichever is sooner."

This would lead me to believe that a person's cart would be emptied upon browser close, however all day yesterday and prior to yesterday a cart would remain full for at least 24 minutes.

Can someone please help?

Our live site is
http://www.maxximastyle.com