PHP Cookie
Cookies are similar to sessions, the main difference is cookie will be maintained in visitor’s browser.
How to set a cookie in PHP?
In php you can use setcookie function to set a cookie. Here is the syntax to set cookie in php.
setcookie(cookiname,cookievalue,expirytime,path);
If you want to set a login user cookie for 2 hours, you can [...]