Bug #14880 Updated: $_SESSION will NOT automatically register it as a session variable
ID: 14880
User updated by: 247net@gmx.net
Reported By: 247net@gmx.net
Old Summary: _SESSION will NOT automatically register it as a session
variable
Status: Open
Bug Type: Session related
Operating System: Debian 3.0 (Woody)
PHP Version: 4.1.0
New Comment:
<?
session_start();
$_SESSION["foo"] = "bar";
if (session_is_registered("foo") == FALSE){
echo "foo is not registered<br>";
}else{
echo $_SESSION["foo"];
}
?>
Previous Comments:
------------------------------------------------------------------------
[2002-01-05 21:52:19] 247net@gmx.net
<?
function func1(){
echo "Set iVar<br>";
$_SESSION["iVar"] = 8;
}
function func2(){
echo "\$_SESSION[iVar] ".$_SESSION[iVar]."<br>";
}
session_start();
if ($_REQUEST["action"] != "page2"){
func1();
}
func2();
if (session_is_registered("iVar") == FALSE){
echo "iVar is not registered<br>";
}
echo "<a href='$PHP_SELF?action=page1'>page1</a><br>";
echo "<a href='$PHP_SELF?action=page2'>page2</a><br>";
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14880&edit=1
Thread (13 messages)
- 247net at gmx dot net
- 247net at gmx dot netBug #14880 Updated: $_SESSION will NOT automatically register it as a session variable
- yohgaki@php.netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- 247net at gmx dot netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- 247net at gmx dot netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- yohgaki@php.netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- 247net at gmx dot netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- hideki at matsumura dot club dot ne dot jpBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- yohgaki@php.netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- 247net at gmx dot netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- yohgaki@php.netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- 247net at gmx dot netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable
- yohgaki@php.netBug #14880 Updated: _SESSION will NOT automatically register it as a session variable