|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-11 18:44 UTC] jani@php.net
[2008-11-12 09:17 UTC] rix0rrr at gmail dot com
[2008-11-12 13:09 UTC] jani@php.net
[2008-11-20 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
Description: ------------ When the body of a POST request grows too large, PHP stops decoding the passed-in cookies properly. Usually this results in a session that is dropped (the user being logged out, etc.) Reproduce code: --------------- <? session_start(); $FIELDS = 200; ?> PHP Version: <b><?= phpversion() ?></b><br> Cookies: <b><? print_r($_COOKIE);l ?></b><br> Session ID: <b><?= session_id() ?></b><br> <form method="post"> <input type="submit" value="Send"> <? for ($i = 0; $i < $FIELDS; $i++): ?> <input type="text" name="field[$i]" value="<?= md5(microtime()) ?>"> <? endfor ?> </form> Expected result: ---------------- Session id does not change between posts, cookies are displayed. Actual result: -------------- Depending on the setting of $FIELDS, PHP does or does not drop the cookies and therefore the session. On my setup, setting $FIELDS to 100 works fine and the session is maintained, setting $FIELDS to 200 exhibits the behaviour mentioned.