Edit report at https://bugs.php.net/bug.php?id=65131&edit=1
ID: 65131 Updated by: a...@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