Name

setcookie

Synopsis

setcookie($name);

setcookie($name, $value, $expire, $path, $domain, $secure);

Sends a cookie with the given attributes to the browser. If only name is present, that cookie with that name is deleted from the browser. Any argument may be left out or replaced with "" (or in the case of expire and secure) to be skipped.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.