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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 08:01:32 2024 UTC