Problem with cookies (maximum of 20)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jan

    #1

    Problem with cookies (maximum of 20)

    Hello,

    I'm builing a webstore with PHP. All products will be stored in a
    cookie-array. In the next page people could fill in their name, address etc.
    And in the 3rd page they could choose how they will pay. These data will
    also be stored in an array. In the 4th page they could see a complete list
    of al the information they filled in. I think some of you know my problem:
    you could only use 20 cookies, the 21th will overwrite another used cookie.
    So in the 4th page there is information missing!!!

    How do I store information from different steps/pages of my webpages?

    I hope you can understand me. If not, please let me know.
    Thanks for your answer!

    Jan (from Holland)

  • Rick Pinney

    #2
    Re: Problem with cookies (maximum of 20)

    I'm new to PHP, but can't you use session variables to store the information
    instead of cookies? I think that using that many cookies wouldnt really work
    too well anyways because a lot of people are running cookie blockers along
    with thier popup blockers so your forms might not work at all on some
    peoples computers.



    "Jan" <doren11@zonnet .nl> wrote in message
    news:BD550CFD.1 8B6A%doren11@zo nnet.nl...[color=blue]
    > Hello,
    >
    > I'm builing a webstore with PHP. All products will be stored in a
    > cookie-array. In the next page people could fill in their name, address
    > etc.
    > And in the 3rd page they could choose how they will pay. These data will
    > also be stored in an array. In the 4th page they could see a complete list
    > of al the information they filled in. I think some of you know my problem:
    > you could only use 20 cookies, the 21th will overwrite another used
    > cookie.
    > So in the 4th page there is information missing!!!
    >
    > How do I store information from different steps/pages of my webpages?
    >
    > I hope you can understand me. If not, please let me know.
    > Thanks for your answer!
    >
    > Jan (from Holland)
    >[/color]


    Comment

    • Andy Hassall

      #3
      Re: Problem with cookies (maximum of 20)

      On Fri, 27 Aug 2004 16:08:29 +0200, Jan <doren11@zonnet .nl> wrote:[color=blue]
      >I'm builing a webstore with PHP. All products will be stored in a
      >cookie-array. In the next page people could fill in their name, address etc.
      >And in the 3rd page they could choose how they will pay. These data will
      >also be stored in an array. In the 4th page they could see a complete list
      >of al the information they filled in. I think some of you know my problem:
      >you could only use 20 cookies, the 21th will overwrite another used cookie.
      >So in the 4th page there is information missing!!!
      >
      >How do I store information from different steps/pages of my webpages?
      >
      >I hope you can understand me. If not, please let me know.
      >Thanks for your answer![/color]

      Sessions are certainly worth a look. All the client gets is one cookie with a
      unique ID, and the rest of the data is stored on the server (where the client
      can't mess with it).

      And as another bonus, you can get sessions to work even on browsers that
      refuse cookies.

      --
      Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
      <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

      Comment

      Working...