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

From: Date: Tue, 15 Jul 2003 18:22:00 +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-44050@lists.php.net to get a copy of this message
ID: 24662 Updated by: sniper@php.net Reported By: narayan at oliveinternet dot com Status: Bogus Bug Type: Session related Operating System: linux PHP Version: 4.3.2 New Comment: You really need to upgrade first to 4.3.2 before even thinking of submitting any bug reports.. Previous Comments: ------------------------------------------------------------------------ [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 (#44050) next »