I am building a site with a shopping cart which is stored in sessions like this:
if (!array_key_exists($pid, $_SESSION['cart']))
{
$_SESSION['cart'][$pid] = array(
'itemId'=>$pid,
'qty'=>0
);
}
The issue is that the Sessions are expiring quickly, maybe 30 minutes. I would like to be able to keep the sessions for 1 day at least.
Is there any specific way for doing this?