PHP Cookie limit

Wondering why some cookies are not set? The maximum number is 20. The maximum total size only 2 KB. They are set in the reverse direction of the script. And they must be accessed by the same directory in which they have been set. If you use 'include' the original script will determine the active directory, not the included one.
You can exceed the number of 20 by putting the values into one string seperating with a character of you choice:
$all="$a;$b;$c;$d";
setcookie('all',$all,time()+10000);


and unpack it with explode:
$x=$_COOKIE['all'];
$y=explode(';',$x);   // ';' is the seperator
$a=$y[0];$b=$y[1]; and so on.


Radiovibrations.com -> php