Page 1 of 1

cookies issue

Posted: Fri Jun 21, 2002 6:32 am
by kaizix
i'm trying to implement cookies for comments on my site (so people don't keep typing in their name and stuff) but i keep getting something funky. it seems to set and get the cookies fine for me. but for some people, they get all c's when going to the page that has the cookies. setting the cookies like this...

Code: Select all

setcookie ("mungoїname]", $name, time()+1209600);
   setcookie ("mungoїurl]", $url, time()+1209600);
   setcookie ("mungoїemail]", $email, time()+1209600);
   setcookie ("mungoїremember]", "checked", time()+1209600);
   setcookie ("mungoїnotify]", $notify, time()+1209600);
and all the info is being passed through a form...the variables are being set ok because i use those same variables to insert into a mysql db and that works fine. as i understand it, cookie become global automatically and calling them is just like calling a regular variable. (which is what i do to display the info in it.) the other odd thing is that they work great for me, but not for others (sometimes)...what could be the deal.... :?:

Posted: Fri Jun 21, 2002 8:08 am
by e+
Is it a specific browser issue as not all browser can work with cookie array things properly. Also are you setting more variables in cookies as some browsers have a limit of 20 per site?

Posted: Fri Jun 21, 2002 12:42 pm
by kaizix
well, the person that first told me was using ie5 and then tried with ie6 and got the same thing. and those are the only cookies i'm setting anywhere on the site.