Oct 15, 2014

. How to set cookies in PHP?

Cookies are often used to track user information.
Cookies can be set in PHP using the setcookie() function.
Parameters are : name of the cookie, Value of cookie, time for expiry of cookie, path of the cookies location on server, domain, secure (TRUE or FALSE) indication whether the cookie is passed over a secure HTTPS, http only (TRUE) which will make the cookie accessible only through HTTP.
Returns TRUE or FALSE depending on whether the cookie was executed or not.


Post a Comment