Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Cookie Limit ?

  1. #1
    New Coder
    Join Date
    May 2005
    Location
    Vietnam
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cookie Limit ?

    Is there a cookie limit ?

    And if it has , what's the limitation ?

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #3
    New Coder
    Join Date
    May 2005
    Location
    Vietnam
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks

    One more question plz

    Cookies may be 4kb long each, name of the cookie included.
    does it mean , i can have a cookie 4kb or all cookie must not be over 4kb ?

    P/s : Sorry , my english is limited , and i'm a newbie

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey, if this is related to your other question re serialization, I still think going for the JS-PHP route is better. you could parse your JS files using PHP, so to serialize a variable just poll the JS file again, passing the variable as a parameter, sorta like so:

    PHP Code:
    <script type="text/javascript" src="serializer.php?SERIAL=variable_name"></script> 
    *keep it simple (TM)

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    620
    Thanks
    1
    Thanked 20 Times in 20 Posts
    You are allowed to have as many as 20 cookies, and each one may be 4kb (4096 bytes) long, for a total maximum size of 81920 bytes.

  • #6
    New Coder
    Join Date
    May 2005
    Location
    Vietnam
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks guy , it's clear now !


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •