According to Netscape's cookie spec, the limits for cookies are as follows:
<PRE>
300 total cookies (which is browser settable now I think).
4 kilobytes per cookie.
20 cookies per server or domain. Completely specified hosts and domains are considered separate entities, and each has a 20 cookie limitation.
</PRE>
I am attempting to set 16 cookies and the total weight of all the data is 8k. However when I attempt navigate to a different page I'm getting the following error:
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
It seems to be attempting to pass all the data in one cookie that exceeds the 4k size limit allowed for a cookie.
I'm using the following function to set the cookies:
FUNCTION insert_data_into_cookie($array_w_q_data,$num_of_cookie) {
GLOBAL $data;
$temp = serialize($array_w_q_data);
setcookie ("data$num_of_cookie",$temp,"");
return;
};
Does anyone have any ideas how to fix this.
thanks,
Bryan