browser 4K limits

S

shank

I've been reading where browsers can limit cookie sizes to 4K. I have a
cookie-based cart and one customer that wants to put 50+ items in the cart.
It works fine down around 30 items.

Is it possible to raise that limit?

thanks
 
D

Dave Anderson

shank said:
I've been reading where browsers can limit cookie sizes to 4K. I have
a cookie-based cart and one customer that wants to put 50+ items in
the cart. It works fine down around 30 items.

Is it possible to raise that limit?

Since you don't have control over the client environment, there isn't a
whole lot you can do. One thing you could do is encode the data in the cart
in a manner that compresses the information. Additional cookies may help.
But 4K is what you get when you choose cookie-based carts.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
S

shank

Dave Anderson said:
Since you don't have control over the client environment, there isn't a
whole lot you can do. One thing you could do is encode the data in the
cart in a manner that compresses the information. Additional cookies may
help. But 4K is what you get when you choose cookie-based carts.

What if I did have control over the client's machine? I'm sure to resolve
this issue they'd entertain changing that limit. Are you aware of any way to
change that on one's computer?
thanks!
 
D

Dave Anderson

shank said:
What if I did have control over the client's machine?

I don't think you get my point. The browser is the client environment. You
didn't write the browser, so you cannot change the way it stores cookies.

More importantly, since there was broad adoption of Netscape's
specification, it is likely a browser sending cookies larger than 4K would
not function as expected with many servers (and conversely, exceeding 4K
with the Set-Cookie header could break some browsers). What you get is a de
facto standard.

http://wp.netscape.com/newsref/std/cookie_spec.html




--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top