public static function set(
        $key,
        $data,
        $expirate = 3600,
        $path = null,
        $domain = null,
        $secure = false,
        $http = true
    ) {
        $data = Crypto::encrypt($data);

        return setcookie(
            $key,
            $data,
            time() + $expirate,
            $path,
            $domain,
            $secure,
            $http
        );
    }
public static function set(
        $key,
        $data,
        $expirate = 3600,
        $path = null,
        $domain = null,
        $secure = false,
        $http = true
    ) {
        $data = Crypto::encrypt($data);

        return setcookie(
            $key,
            $data,
            time() + $expirate,
            $path,
            $domain,
            $secure,
            $http
        );
    }
public static function set ( $ key , $ data , $ expirate = 3600 , $ path = null , $ domain = null , $ secure = false , $ http = true ) { $ data = Crypto :: encrypt ( $ data ) ; return setcookie ( $ key , $ data , time ( ) + $ expirate , $ path , $ domain , $ secure , $ http ) ; }
Add a value to the cookie table.

@param string|int $key
@param mixed      $data
@param int        $expirate
@param string     $path
@param string     $domain
@param bool       $secure
@param bool       $http

@return bool
Add a value to the cookie table .