php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32221 Please answer me if it is a bug or not
Submitted: 2005-03-07 16:14 UTC Modified: 2005-03-07 16:52 UTC
From: mperson at sohu dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.0.3 OS: win2k
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mperson at sohu dot com
New email:
PHP Version: OS:

 

 [2005-03-07 16:14 UTC] mperson at sohu dot com
Description:
------------
I write a web programe with php 5.0.3.
When I write so in a.php:
<?
$Name="abcd";
session_start();
session_register("Name");
?>
<script language="javascript">
self.location="b.php";
</script>
in b.php I write so:
<?
echo session_is_registered("Name");
?>
b.php display null
if I write so in a.php
<a href="b.php">next page</a>
b.php display 1
I do not know if it is a bug?please answer me

Reproduce code:
---------------
I write a web programe with php 5.0.3.
When I write so in a.php:
<?
$Name="abcd";
session_start();
session_register("Name");
?>
<script language="javascript">
self.location="b.php";
</script>
in b.php I write so:
<?
echo session_is_registered("Name");
?>
b.php display null
if I write so in a.php
<a href="b.php">next page</a>
b.php display 1
I do not know if it is a bug?please answer me

Expected result:
----------------
I write a web programe with php 5.0.3.
When I write so in a.php:
<?
$Name="abcd";
session_start();
session_register("Name");
?>
<script language="javascript">
self.location="b.php";
</script>
in b.php I write so:
<?
echo session_is_registered("Name");
?>
b.php display null
if I write so in a.php
<a href="b.php">next page</a>
b.php display 1
I do not know if it is a bug?please answer me

Actual result:
--------------
I write a web programe with php 5.0.3.
When I write so in a.php:
<?
$Name="abcd";
session_start();
session_register("Name");
?>
<script language="javascript">
self.location="b.php";
</script>
in b.php I write so:
<?
echo session_is_registered("Name");
?>
b.php display null
if I write so in a.php
<a href="b.php">next page</a>
b.php display 1
I do not know if it is a bug?please answer me

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-07 16:52 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC