您的位置:寻梦网首页编程乐园PHP 编程PHP5中文手册
PHP5中文手册

setrawcookie

(PHP 5)

setrawcookie — Send a cookie without urlencoding the cookie value

说明

bool setrawcookie ( string $name [, string $value [, int $expire [, string $path [, string $domain [, bool $secure [, bool $httponly ]]]]]] )

setrawcookie() is exactly the same as setcookie() except that the cookie value will not be automatically urlencoded when sent to the browser.

返回值

如果成功则返回 TRUE,失败则返回 FALSE

更新日志

版本 说明
5.2.0 The httponly parameter was added.

参见