Viewing Paste 391
Formated Paste
//bool setcookie ( string $name [, string $value [, int $expire = 0 [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]]]] ) function set_cookie($name, $value = '', $expire = 0, $path = '', $domain = '', $secure = false, $httponly = false) { // This function is pointless if we have PHP >= 5.2. // $httponly is the only reason I made this function. If it's not being used, use setcookie(). if (!$httponly) // Ugh, looks like we have to resort to using a manual process. .(!$secure ? '' : '; Secure') .(!$httponly ? '' : '; HttpOnly'), false); }
