Problem with cookies (maximum of 20)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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)

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.

Quoted text here. Click to load it

Re: Problem with cookies (maximum of 20)

Quoted text here. Click to load it

 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.

< Space: disk usage analysis tool

Site Timeline