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


How to set a cookie with PHP code?

miami boy Offline referral

Posts: 82
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,424
Joined: May 2013
Reputation: 102

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
Looking for ways to make money fast? Read this article and start earning money todya fast, easy or for free.
Rapidsoft technologies Offline referral

Posts: 212
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..

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