Hello
I need to store some very long text inside a cookie using php’s setcookie
the problem is that sometimes the text is too long for the browser to handle
and I get the following error:
400 Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Is there a way to compress the value I am about to save in the cookie
and then to uncompress it again when I read the value from the cookie?
I just need to make sure that the encoding of the compressed value will be
legal for the browser to store in the cookie so that the uncompression will work
Is this possibe?
I would appreciate leads to PHP compression solutions if possible
regards