22/12/2013

How to solve the max_input_vars limitation

max_input_vars

Josep Sanz

Since PHP 5.3.9, has been added max_input_vars configuration directive which limits the number of variables that can get for $_GET, $_POST and $_COOKIE. This has led to applications using forms with many input type checkbox / hidden / text, may have problems in receiving data loss from the server. This directive basically mitigates the possibility of denial of service attacks using hash collisions. Therefore, it may happen that in some hostings this variable exists and is restricted to its default…

PHP lines
15,501
JS lines
13,186
XSLT lines
2,498
XML lines
2,397
CSS lines
591
SQL lines
211