A persistent cookie is a cookie which is stored in a cookie file permanently on the client computer.
Syntax
setcookie(name, value, expire, path, domain);
Set Cookie
setcookie('user','raj',time()+365*60*60*24);
Access Cookie
echo $_COOKIE['user'];
Remove Cookie
setcookie('user','raj',time()-365*60*60*24);
Copyright ©2022 coderraj.com. All Rights Reserved.
Exact and clear answer of persistent cookie