Bug #15983 Updated: session variables lost between pages
From: sl at scrooge dot dk Date: Sun, 28 Apr 2002 11:31:45 +0000 Subject: Bug #15983 Updated: session variables lost between pages References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-6344@lists.php.net to get a copy of this message
ID: 15983
Updated by: sl@scrooge.dk
Reported By: sl@scrooge.dk
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Debian/Linux mips platform
PHP Version: 4.1.2 and 4.2.0
New Comment:
Tried the latest snapshort and I have started to debug the code myself
using to computers a i386 as reference and the MIPS.
We will see how much I can debug of this.
Regards,
Søren,
Previous Comments:
------------------------------------------------------------------------
[2002-04-26 21:07:56] sniper@php.net
This _might_ be related to some fixes made recently..
Can you try with the latest CVS snapshot from http://snaps.php.net/
please?
------------------------------------------------------------------------
[2002-04-25 17:30:54] sl@scrooge.dk
Just compiled 4.2.0 tried the new script. The error is stille there.
The session file in /tmp contains:
test|i:1;
But it displays 0 (Which is correct the first time).
Change the filesystem from ext3 to ext2 to make sure that was not the
problem. Updated the system with updated packages from debian.
Regards,
Søren,
------------------------------------------------------------------------
[2002-04-24 18:19:03] sniper@php.net
Reopen if this script does not work for you with PHP 4.2.0:
<?php
session_start();
if(!isset($_SESSION['test'])) {
$_SESSION['test'] = 0;
}
echo $_SESSION['test']++;
?>
It works fine here..(reloading the page increases the count)
--Jani
------------------------------------------------------------------------
[2002-04-24 09:55:59] gearond@cvc.net
These two pages, s*1.php and s*2.php are called consecutively,
separately by the same browser with the SID in the cookie?
I thought sessions had to be accessed using a SID. At least, that is
the way I believe PHPLib does it, and PHP 4.x.x is supposed to be
exhibiting similar behavior, right?
If one script is including the other script, I don't know hwo that
would work.
------------------------------------------------------------------------
[2002-04-12 05:23:51] achim@ddd.de
what about this workaround:
--- page #1 ---
session_start();
$_SESSION["test"] = "some value";
---------------
--- page #2 ---
session_start();
print $_SESSION["test"];
---------------
this works well for us.
/achim
------------------------------------------------------------------------
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/15983
--
Edit this bug report at http://bugs.php.net/?id=15983&edit=1
Thread (46 messages)
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- Bug #15983 Updated: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Opn->Fbk]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Fbk->Opn]: session variables lost between pages
- #15983 [Opn->Fbk]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Fbk]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Fbk->Opn]: session variables lost between pages
- #15983 [Opn->Fbk]: session variables lost between pages
- #15983 [Fbk->Opn]: session variables lost between pages
- #15983 [Opn->Fbk]: session variables lost between pages
- #15983 [Fbk->Opn]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Opn->Csd]: session variables lost between pages
- #15983 [Csd]: session variables lost between pages
- #15983 [Csd->Asn]: session variables lost between pages
- #15983 [Asn]: session variables lost between pages
- #15983 [Asn->Fbk]: session variables lost between pages
- #15983 [Fbk->Opn]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Opn->Csd]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- #15983 [Csd]: session variables lost between pages
- #15983 [Com]: session variables lost between pages
- Bug #15983 [Com]: session variables lost between pages
| « previous | php.bugs (#6344) | next » |
|---|