|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-07 16:52 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 03:00:01 2025 UTC |
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