#41846 [NEW]: Cookies lost when form is large
| From: | aminehaddad at gmail dot com | Date: | Thu, 28 Jun 2007 22:43:53 +0000 |
| Subject: | #41846 [NEW]: Cookies lost when form is large | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-114425@lists.php.net to get a copy of this message | ||
From: aminehaddad at gmail dot com
Operating system: Debian Etch
PHP version: 5.2.3
PHP Bug Type: Session related
Bug description: Cookies lost when form is large
Description:
------------
I have page 1 which sets the session, also setting the cookie. Then page 2
which shows this cookie, and session, and 2 forms. The first form is short,
and the second form is large (25x bigger than form 1). Both form actions
point to page 3, which simply outputs the cookie/session. If you submit
form 1, it will show you the phpsessid, and the session data. If you submit
form 2, which is a rather large form, it will show you an empty cookie.
It seems that it forgets the cookie depending on the amount of input you
give (how large a form is).
The problem has been reproduced several times, and I will attach (if
possible) the source that reproduces this.
Also, the exact version of php is: 5.2.0-8+etch4
Reproduce code:
---------------
http://tremulous.endra.org/htdocs.tar
Put those in your htdocs, and start with login.php.
With form 1, page 3 will show your cookie, with form 2, it won't.
Expected result:
----------------
I expect to see the cookie.
Actual result:
--------------
Array( ) instead of the array with the phpsessid in it.
--
Edit bug report at http://bugs.php.net/?id=41846&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41846&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41846&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41846&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41846&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41846&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41846&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41846&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41846&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41846&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41846&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41846&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41846&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41846&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41846&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41846&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41846&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41846&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41846&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41846&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41846&r=mysqlcfg