php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24662 session expires when page redirected to another php page in the same domain.
Submitted: 2003-07-15 06:08 UTC Modified: 2003-07-16 03:56 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: narayan at oliveinternet dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.1.2 OS: linux
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: narayan at oliveinternet dot com
New email:
PHP Version: OS:

 

 [2003-07-15 06:08 UTC] 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;
?>




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-15 06:10 UTC] narayan at oliveinternet dot com
My PHP Version is 4.1.2
 [2003-07-15 06:30 UTC] derick@php.net
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.

.
 [2003-07-15 06:43 UTC] narayan at oliveinternet dot com
Hi
I checked and both are on.

register_argc_argv
 On 
register_globals
 On
 [2003-07-15 13:22 UTC] sniper@php.net
You really need to upgrade first to 4.3.2 before even
thinking of submitting any bug reports..

 [2003-07-16 03:02 UTC] narayan at oliveinternet dot com
i have no control to upgrade server...this is configured by rackspace.Also in older version this error does not come ,even if it is installed by rackspace.

I know upgradation is one of the solution but still i want to know where is the fault.If you know it then can u tell me which configuration needs to be changed.
 [2003-07-16 03:08 UTC] derick@php.net
The solution is: upgrade to PHP 4.3.2.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 07:01:28 2024 UTC