0 votes
in PHP by
Explain setcookie() function in PHP?

1 Answer

0 votes
by

PHP setcookie() function is used to set cookie with HTTP response. Once the cookie is set, you can access it by $_COOKIE superglobal variable.

Syntax:

bool setcookie ( string $name [, string $value [, int $expire = 0 [, string $path     

[, string $domain [, bool $secure = false [, bool $httponly = false ]]]]]] )    

Related questions

0 votes
asked May 13, 2022 in PHP by john ganales
+1 vote
asked May 13, 2022 in PHP by john ganales
...