3 ms·
Work around this by using suhosin to restrict the variable count even more than PHP's limit. Also your get/post size limit should be restricted anyway, the def
by ck2 15y ago
Work around this by using suhosin to restrict the variable count even more than PHP's limit.
Also your get/post size limit should be restricted anyway, the defaults are far too high.
- ars 15y agoWe must do different kinds of sites, because I found that the defaults were too low - I had constant trouble with them till I increased them by like 1000 over what they were before.
- ck2 15y agoYou are passing more than 1000 variables per request? Maybe some crazy, poorly written ajax, I dunno. The default is 100 or 200, which might be low in some edge cases. suhosin.cookie.max_vars (default 100) suhosin.get.max_vars (default 100) suhosin.post.max_vars (default 200) suhosin.request.max_vars (default 200) To avoid the apache bug, set them no higher than 999. Oh do you mean my comment on GET length? Apache will happily pass PHP up to 8192 characters on a GET request which is insane and should not be allowed. Pass that much via post and restrict URLS to 1024 or less. Old IE won't go over 2k anyway.
- ars 15y agoNope, not ajax, not crazy, and not poorly written. Simply a large page where a client can easily and quickly updates prices on a large number of products. Each product has a number of fields, and there can be lots of products on the page (depending on the search parameters they chose).