persistent cookie in php:

A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer.
  • Content of a Persistent cookie remains unchanged even when the browser is closed.
  • Persistent cookies are less secure because users can open cookie files see the cookie values.
  • Persistent cookies can be used for tracking long-term information. 
Setting cookie in php:
Cookies in PHP can be set using the setcookie() function

Setcookie(name, value, expire, path, domain);

Setcookie(“Full Name”, “Rajesh Sharma”, time()+3600);