\Yurun\Util\YurunHttp\CookieCookieItem

Cookie 项

Summary

Methods
Properties
Constants
__construct()
newInstance()
fromSetCookie()
$name
$value
$expires
$path
$domain
$secure
$httpOnly
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

名称

Type

string

$value

$value : string

Type

string

$expires

$expires : integer

过期时间戳

Type

integer

$path

$path : string

路径

Type

string

$domain

$domain : string

域名

Type

string

$secure

$secure : boolean

是否 https

Type

boolean

$httpOnly

$httpOnly : boolean

是否禁止 js 操作该 Cookie

Type

boolean

Methods

__construct()

__construct(  $name,   $value,   $expires,   $path = '/',   $domain = '',   $secure = false,   $httpOnly = false) 

Parameters

$name
$value
$expires
$path
$domain
$secure
$httpOnly

newInstance()

newInstance(array  $data) : static

获取新实例对象

Parameters

array $data

Returns

static

fromSetCookie()

fromSetCookie(array  $setCookieContent) : static|null

从 Set-Cookie 中解析

Parameters

array $setCookieContent

Returns

static|null