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…

XML lines
52,626
PHP lines
14,125
JS lines
6,289
T2T lines
3,499
XSLT lines
2,652
SQL lines
1,675