Bug #17759 Updated: Why can't I get my session values?

From: Date: Tue, 09 Jul 2002 21:33:19 +0000
Subject: Bug #17759 Updated: Why can't I get my session values?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13638@lists.php.net to get a copy of this message
ID: 17759 Updated by: StewR@wellsref.com Reported By: jkchang@ms6.url.com.tw Status: Feedback Bug Type: Session related Operating System: Solaris 8 PHP Version: 4.2.0 New Comment: register_globals is off on both cases. However, $_SESSION["normal"] does work for the listed reproducable sample. Verifying with 'real' app... Thanks, Stew Previous Comments: ------------------------------------------------------------------------ [2002-07-09 10:12:53] nohn@php.net Ist it possible that you have register_globals off? Try file1.php :::::::::::::: <?php session_start(); $normal=1; session_register("normal"); header('Location: file2.php'); ?> file2.php :::::::::::::: <?php session_register("normal"); echo "Normal:".$_SESSION["normal"]."<br><br>\n"; ?> ------------------------------------------------------------------------ [2002-07-03 10:19:57] StewR@wellsref.com Also reproducable on Solaris 9 (Ultra5/sun4u) NonWorking: Apache 1.3.26, ModSSL 2.8.10, OpenSSL 0.9.6d, PHP 4.2.1 Stew ------------------------------------------------------------------------ [2002-07-02 13:59:10] fabien@operacom.com I have the same problem on FreeBsd 4.6, Apache 1.3.26 and the latest build of PHP (1st of july 2002) ------------------------------------------------------------------------ [2002-07-01 15:19:37] StewR@wellsref.com Similar symptoms on Apache/ModSSL upgrade on same box Box: 280-R (sun4u) 2x4 Working Config (port 89): Solaris 8, Apache 1.3.23, ModSSL 2.8.7, OpenSSL 0.9.6c, PHP 4.2.1 NonWorking Config (port 890): Solaris 8, Apache 1.3.26, ModSSL 2.8.10, OpenSSL 0.9.6d, PHP 4.2.1 Reproducable sample: file1.php :::::::::::::: <?php session_start(); $normal=1; session_register("normal"); header('Location: file2.php'); ?> file2.php :::::::::::::: <?php session_register("normal"); echo "Normal:".$normal."<br><br>\n"; ?> ------------------------------------------------------------------------ [2002-06-14 09:33:10] derick@php.net Actually this is a bug on non-intel platforms. atleast, maybe. I saw such thing reproduced on Linux/sparc @ LT. (Hakan knows more and is going to file a report). Derick ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17759 -- Edit this bug report at http://bugs.php.net/?id=17759&edit=1

« previous php.bugs (#13638) next »