Esempio n. 1
0
 public static function initCookie()
 {
     if (!isset($_COOKIE['frontend'])) {
         self::report("first time visitor, I will be creating a cookie from here");
         // create the cookie so Magento doesn't fail
         self::buildCookie();
     } else {
         self::report("not a new visitor, using old cookie");
         self::$isCookieNew = false;
     }
 }