+ Reply to Thread
Results 1 to 9 of 9

Thread: Too Many Cookies!

  1. #1
    Coldfirezz's Avatar
    Coldfirezz is offline x10 Elder Coldfirezz is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Massachusetts
    Posts
    505

    Too Many Cookies!

    Has anyone else had a problem with having too many cookies, pretty much to the point where some cookies are not set?

  2. #2
    TheMan177 is offline x10 Sophmore TheMan177 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    179

    Re: Too Many Cookies!

    Can't say I have, no. There is most certainly alternatives though, what are you storing in cookies?

  3. #3
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: Too Many Cookies!

    i never had, but i only store 3 max. one for username, one for hashed password and the other for persistent login

  4. #4
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Too Many Cookies!

    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

  5. #5
    Coldfirezz's Avatar
    Coldfirezz is offline x10 Elder Coldfirezz is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Massachusetts
    Posts
    505

    Re: Too Many Cookies!

    Quote Originally Posted by leafypiggy View Post
    too many cookies? theres no such thing. :D

    your browser may be blocking them.

    what browser are you using?
    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.

  6. #6
    mephis's Avatar
    mephis is offline x10Hosting Member mephis is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    39

    Re: Too Many Cookies!

    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

  7. #7
    Coldfirezz's Avatar
    Coldfirezz is offline x10 Elder Coldfirezz is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Massachusetts
    Posts
    505

    Re: Too Many Cookies!

    Quote Originally Posted by mephis View Post
    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
    A ton! Probably about 20-30 variables.

  8. #8
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: Too Many Cookies!

    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.

  9. #9
    mephis's Avatar
    mephis is offline x10Hosting Member mephis is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    39

    Re: Too Many Cookies!

    Quote Originally Posted by xPlozion View Post
    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

+ Reply to Thread

Similar Threads

  1. php, cookies, and IE7
    By taekwondokid42 in forum Programming Help
    Replies: 2
    Last Post: 05-04-2008, 10:06 AM
  2. cURL Login And Cookies and Regex
    By Tau_Zero in forum Programming Help
    Replies: 4
    Last Post: 12-12-2007, 12:29 AM
  3. cookies ¿?
    By jptosso in forum Soporte
    Replies: 3
    Last Post: 10-18-2007, 04:50 PM
  4. Destroy Cookies
    By Shadow121 in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 11-24-2006, 12:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers