#24662 [Opn->Bgs]: session expires when page redirected to another php page in the same domain.
| From: | derick@php.net | Date: | Tue, 15 Jul 2003 11:30:55 +0000 |
| Subject: | #24662 [Opn->Bgs]: session expires when page redirected to another php page in the same domain. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44030@lists.php.net to get a copy of this message | ||
ID: 24662
Updated by: derick@php.net
Reported By: narayan at oliveinternet dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: linux
PHP Version: 4.3.2
New Comment:
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
.
Previous Comments:
------------------------------------------------------------------------
[2003-07-15 06:10:00] narayan at oliveinternet dot com
My PHP Version is 4.1.2
------------------------------------------------------------------------
[2003-07-15 06:08:00] narayan at oliveinternet dot com
Description:
------------
I have two following scripts.... in t1.php i register session and
t2.php i retrieve session.
In my development server its working fine and i am getting value = 1000
but in the production server value is not coming.
// t1.php
<?php
session_start();
session_register("SS_X");
$SS_X=1000;
header("location: t2.php");
?>
//t2.php
<?php
session_start();
echo $SS_X;
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24662&edit=1