public static function pull($key)
    {
        if (isset($_COOKIE[self::$prefix . $key])) {
            setcookie(self::$prefix . $key, '', time() - 3600, '/');

            return $_COOKIE[self::$prefix . $key];
        }

        return false;
    }
public static function pull($key)
    {
        if (isset($_COOKIE[self::$prefix . $key])) {
            setcookie(self::$prefix . $key, '', time() - 3600, '/');

            return $_COOKIE[self::$prefix . $key];
        }

        return false;
    }
public static function pull ( $ key ) { if ( isset ( $ _COOKIE [ self :: $ prefix . $ key ] ) ) { setcookie ( self :: $ prefix . $ key , '' , time ( ) - 3600 , '/' ) ; return $ _COOKIE [ self :: $ prefix . $ key ] ; } return false ; }
Extract item from cookie then delete cookie and return the item.

@param string $key → item to extract

@return string|false → return item or false when key does not exists
Extract item from cookie then delete cookie and return the item .