cookies issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kaizix
Forum Commoner
Posts: 50
Joined: Tue Jun 18, 2002 9:16 pm
Location: california
Contact:

cookies issue

Post 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.... :?:
User avatar
e+
Forum Commoner
Posts: 44
Joined: Mon Jun 17, 2002 7:07 am
Location: Essex, UK

Post 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?
kaizix
Forum Commoner
Posts: 50
Joined: Tue Jun 18, 2002 9:16 pm
Location: california
Contact:

Post 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.
Post Reply