Slide 83
Slide 83 text
PHP example: setting a cookie
setcookie('foo', 'bar', time() + 3600,
'/~ramsey/http', 'localhost', false, true);
PHP:
header('Set-Cookie: foo=bar; expires=Fri, 12-
Mar-2010 07:01:21 GMT; path=/~ramsey/http;
domain=localhost; httponly');
PHP (also):
Set-Cookie: foo=bar; expires=Fri, 12-Mar-2010
07:01:21 GMT; path=/~ramsey/http;
domain=localhost; httponly
HTTP response header: