Php Send Cookie Function
What is Setcookie Function?
The "setcookie" function is used to send a cookie.
In the above syntax "name" specifies the name of the cookie, "value" specifies the value of the cookie, "expire" specifies when the cookie expires, "path" specifies the server path of the cookie, "domain" specifies the domain name of the cookie,"secure" specifes whether a cookie should be transmitted or not over a secure connection.
$value = "this cookie value";
In the above example a string is assigned to the cookie, and the cookie is set a expiry time of 24 hours.