\Imi\Server\SessionSessionCookie

Summary

Methods
Properties
Constants
__construct()
$lifetime
$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

$lifetime

$lifetime : integer

Cookie 的 生命周期,以秒为单位。

Type

integer

$path

$path : string

此 cookie 的有效 路径。 on the domain where 设置为“/”表示对于本域上所有的路径此 cookie 都可用。

Type

string

$domain

$domain : string

Cookie 的作用 域。 例如:“www.php.net”。 如果要让 cookie 在所有的子域中都可用,此参数必须以点(.)开头,例如:“.php.net”。

Type

string

$secure

$secure : boolean

设置为 TRUE 表示 cookie 仅在使用 安全 链接时可用。

Type

boolean

$httponly

$httponly : boolean

设置为 TRUE 表示 PHP 发送 cookie 的时候会使用 httponly 标记。

Type

boolean

Methods

__construct()

__construct(  $lifetime,   $path = '/',   $domain = '', \Imi\Server\Session\bool  $secure = false, \Imi\Server\Session\bool  $httponly = false) 

Parameters

$lifetime
$path
$domain
\Imi\Server\Session\bool $secure
\Imi\Server\Session\bool $httponly