Can anybody teach me how to use PHP code to set a cookie whenever you open or visit a page?
Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.
How to set a cookie with PHP code?
It's pretty easy to set a cookie using PHP here is an example!
$cookie_name = "Name of your cookie";
$cookie_value = "Content of your cookie";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // This cookie will expire in 24 hours or 1 day
User(s) browsing this thread: 1 Guest(s)