Has anyone else had a problem with having too many cookies, pretty much to the point where some cookies are not set?
Can't say I have, no. There is most certainly alternatives though, what are you storing in cookies?
i never had, but i only store 3 max. one for username, one for hashed password and the other for persistent login
too many cookies? theres no such thing. :D
your browser may be blocking them.
what browser are you using?
█ Neil Hanlon | x10Hosting Support Representative
█ Neil[at]x10hosting.com
█ I'm always happy to help. Just ask a question in Free Hosting
█ Terms of Service IRC
The browser only seems to block some but I cut the amount of cookies I used and it worked (Stored some that had been blocked). I stored the character stats for my rpg but I worked it out and fixed it. I cant say why it wasnt working other than I had to many cookie variables.
from the CodeIgniter user guide:
"Cookies can only hold 4KB of data, so be careful not to exceed the capacity."
side note: just exactly how much information were you storing on your cookies?!? 4kb is plenty :P
just a quick question, i'm prob overlooking it, but why are you storing character stats in cookies instead of a db? people can edit cookies and set them to what they want.
I'm assuming the storing of stats is only while the user is playing, which makes sense because cookie data is quicker to access than making a db query.
but even so, why not use $_SESSION vars instead?
have a read here about the pros and cons of cookies/sessions: http://www.hudzilla.org/phpbook/read.php/10_1_0