php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41846 Cookies lost when form is large
Submitted: 2007-06-28 22:43 UTC Modified: 2007-06-29 08:44 UTC
From: aminehaddad at gmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2.3 OS: Debian Etch
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: aminehaddad at gmail dot com
New email:
PHP Version: OS:

 

 [2007-06-28 22:43 UTC] aminehaddad at gmail dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-29 05:59 UTC] aminehaddad at gmail dot com
Suhosin's fault. I apologize, I was sure I took it off.
 [2007-06-29 08:44 UTC] scottmac@php.net
Not a PHP Bug -> Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 19:01:32 2024 UTC