protected function getId()
    {
        if (! isset($_COOKIE[self::COOKIE_ID])) {
            $id = uniqid();
            setcookie(self::COOKIE_ID, $id);
        } else {
            $id = $_COOKIE[self::COOKIE_ID];
        }
        return $id;
    }
protected function getId()
    {
        if (! isset($_COOKIE[self::COOKIE_ID])) {
            $id = uniqid();
            setcookie(self::COOKIE_ID, $id);
        } else {
            $id = $_COOKIE[self::COOKIE_ID];
        }
        return $id;
    }
protected function getId ( ) { if ( ! isset ( $ _COOKIE [ self :: COOKIE_ID ] ) ) { $ id = uniqid ( ) ; setcookie ( self :: COOKIE_ID , $ id ) ; } else { $ id = $ _COOKIE [ self :: COOKIE_ID ] ; } return $ id ; }
Get cookie id OR create it if doesnt exist
@return string
Get cookie id OR create it if doesnt exist