#24662 [Bgs]: session expires when page redirected to another php page in the same domain.

From: Date: Wed, 16 Jul 2003 08:02:02 +0000
Subject: #24662 [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-44105@lists.php.net to get a copy of this message
ID: 24662 User updated by: narayan at oliveinternet dot com Reported By: narayan at oliveinternet dot com Status: Bogus Bug Type: Session related Operating System: linux PHP Version: 4.3.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-07-15 13:22:00] sniper@php.net You really need to upgrade first to 4.3.2 before even thinking of submitting any bug reports.. ------------------------------------------------------------------------ [2003-07-15 06:43:28] narayan at oliveinternet dot com Hi I checked and both are on. register_argc_argv On register_globals On ------------------------------------------------------------------------ [2003-07-15 06:30:54] 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: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

« previous php.bugs (#44105) next »