Bug #65131 [Opn->Fbk]: $UserData & $_SESSION
| From: | ab@php.net | Date: | Wed, 26 Jun 2013 07:01:41 +0000 |
| Subject: | Bug #65131 [Opn->Fbk]: $UserData & $_SESSION | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179832@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65131&edit=1
ID: 65131
Updated by: ab@php.net
Reported by: buhsoft at mail dot ru
Summary: $UserData & $_SESSION
-Status: Open
+Status: Feedback
Type: Bug
Package: Session related
Operating System: Windows 7
PHP Version: 5.3.26
Block user comment: N
Private report: N
New Comment:
Cant repro this using apache 2.2. I always get the first output. Please give more
details about your setup. The snippet looks harmless though.
Previous Comments:
------------------------------------------------------------------------
[2013-06-26 06:19:57] buhsoft at mail dot ru
Description:
------------
First output:
Array ( [UserData] => 999 )
Array ( [UserData] => 999 )
After page updating in browser output:
Array ( [UserData] => 999 )
Array ( [UserData] => )
i.e. using variable $UserData impact on content of $_SESSION array
Test script:
---------------
<?php
header('Content-type: text/html; charset=utf-8');
session_start();
?>
<!DOCTYPE HTML>
<head>
<meta charset="UTF-8">
<title>ТÐСТ 2</title>
</head>
<body>
<?php
$UserData=999;
$_SESSION['UserData']=$UserData;
print_r($_SESSION);
echo "<br>\n";
$UserData="";
print_r($_SESSION);
echo "<br>\n";
?>
</body>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65131&edit=1