Javascript

WordPress Super Cache and Setting Cookies

WP Super Cache and PHP Cookies Don't Mix Website Development Challenge: Setting PHP Cookies While Using WP Super Cache Solution: Set the cookie using Javascript When I created the First Touch Referral Tracking plugin, it seemed like it should be pretty straight forward: check for a cookie with a referrer and set a cookie with the referrer if there's not one. Then, simply grab the cookie whenever it's needed and calculate a referral coupon code. So, I wrote the code using PHP's setcookie() … [Read more...]