
Today I realize that the simple setcookie("sevisitor", 1, time()+3600); would not work perfectly on WordPress especially when your combine it with WordPress permalink. Here a simple hack that you can opt for if you want to set in multiple WordPress environment (especially for plug-ins and themes).
setcookie("sevisitor", 1, time()+3600,
SITECOOKIEPATH, COOKIE_DOMAIN, false, true);
There are multiple alternative for it but this work perfectly on multiple installation.
WOW! I didn’t had any idea about that! Thanks.
Today you saved my life. Thanks
Pingback: wp-popular.com » Blog Archive » Add Additional Cookie on WordPress — Mior Muhammad Zaki
Thanks man…! After a few hours I finally found your post..! Great solution ..! Im comming back, thats for sure :D