Home > PHP > Function > Network > setrawcookie()

setrawcookie()

setrawcookie - Send a cookie without urlencoding the cookie value

Syntax

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

Arguments

  • name
  • value
  • expire
  • path
  • domain
  • secure
  • httponly

Description

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

Version

PHP 5

Return value

Returns TRUE on success or FALSE on failure.