473,326 Members | 2,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Problem with cookies (maximum of 20)

Jan
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)

Jul 17 '05 #1
2 1721
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" <do*****@zonnet.nl> wrote in message
news:BD550CFD.18B6A%do*****@zonnet.nl...
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)

Jul 17 '05 #2
On Fri, 27 Aug 2004 16:08:29 +0200, Jan <do*****@zonnet.nl> wrote:
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!


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 / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: G | last post by:
Hello, Is it possible to send form values from PAGE1 to PAGE2, and then retain the form info for PAGE3 without using cookies, sessions or DB storage? Also, I dont want to repost page2 to page3...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
0
by: Chris Hayes | last post by:
I've seen that when an HTTP 400 error occurs ("Maximum request length exceeded") that some of my Session level variables and Cookies get "lost" is there a way to preserve them without resorting to...
3
by: Joe | last post by:
Hi, I am facing a session Timeout problem on an ASP.NET project. The .NET project is deployed on a Windows server 2003 machine. Users connect to this machine to access the application. From time...
4
by: Brano | last post by:
HI all, I have this problem I have two pages on one I use this code to set some cookies: Response.Cookies("cokFirstName").Expires = DateTime.MaxValue Response.Cookies("cokFirstName").Value =...
2
by: Griff | last post by:
Hi I have an HTML search page that contains a drop-down box with approximately 78,000 items in it. The actual content of this select box varies depending upon some of the parameters a user...
5
by: jheines | last post by:
I am trying to explain how cookies and sessions work in a class I teach, but I have hit a wall when it comes to the interaction between cookies and the state of the privacy settings in Internet...
3
by: Simon Dean | last post by:
Hi, I believe I have a website (I didn't do the original coding) which uses JavaScript/ASP to generate cookies. It's a shopping cart application called UCart I believe. The technologies...
7
by: cmrchs | last post by:
Hi, In Windows Vista: where does asp.net write its cookies? I use HttpCookie objCookie = new HttpCookie("nameCookie"); in Win2000 (and later) they used to be in C:\Documents and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.