Creating a cookie
A cookie can be created using the setcookie function in PHP.
setcookie($name, $value, $expire, $path, $domain, $secure)
$name – name of the cookie.
$value – value of the cookie.
$expire – time when the cookie will expire.
$path – path on the server where cookie will [...]