Bug #15983: session variables lost between pages

From: Date: Sun, 10 Mar 2002 14:14:31 +0000
Subject: Bug #15983: session variables lost between pages
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2157@lists.php.net to get a copy of this message
From:             sl@scrooge.dk
Operating system: Debian/Linux mips platform
PHP version:      4.1.2
PHP Bug Type:     Session related
Bug description:  session variables lost between pages

The session variables are lost between pages.

For example:
session1.php:
<?
session_start();
$test = "Hello world";
session_register(test);
?>

session2.php:
<?
session_start();
echo $test;
?>

The output on page two is the empty string.

A look at the sess_* in /tmp show that it contain the variable and the
value after a request on session1.php.

After a request on session2.php the file is empty.

This error shows up in php 4.1.1 and 4.1.2.

In version 4.0.6 everything works as it is suppose to.

uname --all:
Linux indy01 2.4.16 #1 Sun Dec 16 16:38:44 CET 2001 mips unknown

gcc --version:
2.95.4
-- 
Edit bug report at http://bugs.php.net/?id=15983&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15983&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15983&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15983&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15983&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15983&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15983&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15983&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15983&r=submittedtwice



Thread (46 messages)

« previous php.bugs (#2157) next »