Re: Sessions not working. Used to work fine.
- From: Hendri Kurniawan <ask-me@xxxxxxxxx>
- Date: Wed, 28 Feb 2007 15:48:19 +1100
Nik Coughlin wrote:
Steve wrote:"Nik Coughlin" <nrkn.com@xxxxxxxxx> wrote in messageThe second one has nothing that helps me determine the cause of my problem either.
news:es2o3p$550$1@xxxxxxxxxxx
Sessions have unexpectedly stopped working on a client's webserver.
PHP Version 4.4.1 running under IIS. When moving from page to page
the session information is lost.
It used to work fine, and the same code works on other machines.
AFAIK no-one has been messing with the box, but it's possible. I've
asked them to try and find out if anyone has changed anything.
A minimal test case:
sessionTest1.php:
<?php
session_start();
$_SESSION[ 'test' ] = "Testing";
echo "Test = " . $_SESSION[ 'test' ] . "<br>";
echo '<a href="sessionTest2.php?' . htmlspecialchars(SID) . '">Test Page 2</a>';
?>
sessionTest2.php:
<?php
session_start();
echo "Test = " . $_SESSION[ 'test' ] . "<br>";
echo '<a href="sessionTest1.php">Test Page 1</a>';
?>
You can see what happens here:
http://www.masterpiece.co.nz/sessionTest1.php
Just taking a stab in the dark here: Make sure that your session directory (the directory that PHP store session information) exists.
If you don't know where the directory is see php.ini file
Also take a look at any error log. I don't know about IIS, but when I use apache, I can specify to PHP to send error message to Apache's error log.
Hendri
.
- Follow-Ups:
- Re: Sessions not working. Used to work fine.
- From: Nik Coughlin
- Re: Sessions not working. Used to work fine.
- References:
- Sessions not working. Used to work fine.
- From: Nik Coughlin
- Re: Sessions not working. Used to work fine.
- From: Steve
- Re: Sessions not working. Used to work fine.
- From: Nik Coughlin
- Sessions not working. Used to work fine.
- Prev by Date: Re: Sessions not working. Used to work fine.
- Next by Date: Re: Sessions not working. Used to work fine.
- Previous by thread: Re: Sessions not working. Used to work fine.
- Next by thread: Re: Sessions not working. Used to work fine.
- Index(es):
Relevant Pages
|