I got a PHP (5.6) application. I benchmark the browser and try to log $_COOKIE variable. (or take refresh info.php to get the cookies from PHP Variables)
Since the 4KB of one cookie element is the browser/PHP limit, I use 2048* letter A as a value of the test cookie.
- when I insert test1 = aaaaaaa....aaaaaa (2048 times of 'a')
- The $_COOKIE can be correctly logged.
- when I insert more test cookies, 'test2','test3', ... which same value to test1
- The $_COOKIE can be correctly logged.
- when I insert the 6th one, 'test6'
- The $_COOKIE becomes empty
[]
and info.php start to not show _COOKIE variable.
So the total size limit of cookies is limited to 12KB-13KB, how can I remove or increase this limit? I tried difference configuration and it has different limit. I also set up a Docker PHP, it seems no limit at all. By comparing the info.php, I cannot see any difference.
Since I know modern browser can have 500-600 different cookies with 4KB of each as a limit. But 3 full size cookie for PHP is just too small.
I am not sure which plugin, or setting is blocking set up the cookie.