I have code that I use on my websites to set cookies.
Code: Select all
setcookie("sid",$sid,time()+60*60*24*120,"/");
setcookie("uid",$r[0],time()+60*60*24*120,"/");
setcookie("name",$r[4],time()+60*60*24*120,"/");
I use this code on vgt-central.com and it works just fine. I am building a new website at shopvaluebuy.com and I am using the exact same code. However, for whatever reason, no cookies are being saved on the new website. I know the section that this code is in is being ran because right after this code is a database update call and a redirect. Both the update and redirect are taking place. Like I've said, I am using this exact same code on my other site and it works just fine. I'm going to go insane staring at this code... Can anyone give me any possible problems that I might have?
Thanks