Link to home
Start Free TrialLog in
Avatar of emu10k1
emu10k1

asked on

Cookies data size

Hello experts. I have a site that needs to put much data in cookies, like 8000bytes but the Apache has the header field limitted to 8192. But I have to use cookies. There is a way to compress the cookies? If no, what you suggests to me? Thanks and its urgent
Avatar of Batalf
Batalf
Flag of United States of America image

If you have access to store data on the server instead of in the cookie, that would be the best.

Example if you have Apache, PHP and a database available.

Let the cookie be a unique ID identifying this user. Then save all the data related to this user in the database with reference to the unique cookie.
Avatar of emu10k1
emu10k1

ASKER

Ok. But.. The data(8000bytes more sometimes and less sometimes) has to be Posted (with cookies). So i set the cookie with javascript and so click on a link and my application(php) use the data to store on the data base.
you are using features in ways they are not intended for and pushing the limits, when ever that happens it is time to rethink your design.
Hi,

What's the nature of the data, how large is the vocabulary?

Cheers,
Steve
ASKER CERTIFIED SOLUTION
Avatar of NETTY4
NETTY4

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial