#39634 [Fbk->Opn]: session variable and normal variable

From: Date: Sun, 26 Nov 2006 16:44:05 +0000
Subject: #39634 [Fbk->Opn]: session variable and normal variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105448@lists.php.net to get a copy of this message
ID: 39634 User updated by: erhanbaris at gmail dot com Reported By: erhanbaris at gmail dot com -Status: Feedback +Status: Open Bug Type: Variables related Operating System: Win Xp SP1 PHP Version: 5.2.0 New Comment: yes. register_globals is enabled. Previous Comments: ------------------------------------------------------------------------ [2006-11-26 16:38:53] iliaa@php.net Is you register_globals enabled or not? ------------------------------------------------------------------------ [2006-11-26 10:47:22] erhanbaris at gmail dot com Description: ------------ when i was use $_SESSION variable i find interesting thing. look at this. Reproduce code: --------------- <? session_start(); $_SESSION['id']=2006; header('Location: second.php'); ?> second.php <? session_start(); $id=1985; echo "\$_SESSION['id'] -> ".$_SESSION['id']."<br>\n"; echo "\$id -> ".$id."<br>\n"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39634&edit=1

« previous php.bugs (#105448) next »