Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

How to set a cookie with PHP code?

make money online
miami boy Offline referral

Posts: 81
Joined: May 2014
Reputation: 0

Can anybody teach me how to use PHP code to set a cookie whenever you open or visit a page?
marcus_avrelius Offline referral

Posts: 2,507
Joined: May 2013
Reputation: 109

Support Team
It's pretty easy to set a cookie using PHP here is an example!
PHP Code:
"Name of your cookie";
$cookie_value "Content of your cookie";
setcookie($cookie_name$cookie_valuetime() + (86400 30), "/"); // This cookie will expire in 24 hours or 1 day
Rapidsoft technologies Offline referral

Posts: 224
Joined: Sep 2015
Reputation: 1

Nice update! I was looking for the same code.
mitali Offline referral

Posts: 11
Joined: Dec 2016
Reputation: 0

Junior Member
Thanx for the update..
damponting44 Offline referral

Posts: 536
Joined: Oct 2016
Reputation: 0

Senior Member
A cookie is a little record that the server inserts on the client's PC.

Google this topic

User(s) browsing this thread: 1 Guest(s)