#41879 [Fbk->Opn]: POST array becomes empty
| From: | getmequick at gmail dot com | Date: | Mon, 02 Jul 2007 23:42:30 +0000 |
| Subject: | #41879 [Fbk->Opn]: POST array becomes empty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114558@lists.php.net to get a copy of this message | ||
ID: 41879
User updated by: getmequick at gmail dot com
Reported By: getmequick at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Linux
PHP Version: 5.2.3
New Comment:
it's Apache 1.3x
Previous Comments:
------------------------------------------------------------------------
[2007-07-02 23:33:31] sniper@php.net
What SAPI are you using? (Apache, CGI / FastCGI, something else?)
------------------------------------------------------------------------
[2007-07-02 23:27:43] getmequick at gmail dot com
Description:
------------
We have recently installed SSL support to our domain and some problems
came up,
When we submit html form by using POST method, we get session vars
instead in $_POST array or just empty array, if there no session vars
registered.
This happens only if we start session before, if we don't, $_POST array
has values as expected.
Reproduce code:
---------------
test1.php page
<form action="test2.php" method="post">
<input type="text" name="text" />
<input type="submit" name="text2" value="Submit" />
</form>
------------
test2.php page
<?php
session_start();
print_r($_POST);
?>
Expected result:
----------------
Array ( [text] => blah [text2] => Submit )
Actual result:
--------------
Array ( )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41879&edit=1