The default length of time that data stays in the cart is 24 hours. If you want to extend or limit the amount of time that the data exists in the cart, you may do so by editing the file at:
/includes/classes/class.session.php.
You will need to find the line that says:
@ini_set('session.gc_maxlifetime', 86400);
and change it to:
@ini_set('session.gc_maxlifetime', 86400*XX);
where XX represents the number of days you wish to extend the cookie by. 86400 represents the number of seconds in 24 hours (24 hours * 60 minutes * 60 seconds). If you wish to lower the time you would obviously need to calculate the number of seconds you wish to keep the data in the cart and then replace the 86400 with that number.

The article has been updated successfully.