fix endlife cookie cart

This commit is contained in:
Manuel Raynaud
2013-07-26 15:40:05 +02:00
parent 74fb217cb4
commit 9f4a2778e3
2 changed files with 24 additions and 1 deletions

View File

@@ -174,7 +174,7 @@ class Cart implements EventSubscriberInterface
protected function generateCookie()
{
$id = uniqid('', true);
setcookie("thelia_cart", $id, uniqid('', true));
setcookie("thelia_cart", $id, time()+(60*60*24*365));
return $id;
}