Re: Sessions not working. Used to work fine.



Steve wrote:
"Nik Coughlin" <nrkn.com@xxxxxxxxx> wrote in message
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.

Any ideas?

wow, this is a big problem as of late! i recommend that you quit using
freaking google groups to access usenet.

Um, I'm not using Google Groups.

were you to use a moderately
good news reader, you'd be able to more easily see there have been at
least three long discussions about this in as many days...each
describing what to look for.

You mean, if I had been already subscribed to alt.php and had been
downloading headers? Well, I wasn't already subscribed so I only got the
latest headers. I missed the posts you're talking about.

Ironically though, given your statement about not using Google Groups to
access Usenet, I was able to find those posts by searching Google Groups.
There are two posts about sessions in this group in the last two weeks, not
3 in the last 3 days.

One of them relates to something that AOL does with sessions. Not my issue.
Not related at all. No help to me.

The second one has nothing that helps me determine the cause of my problem
either.

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


.



Relevant Pages

  • Re: tattoo removal help!!!!
    ... tattoos were a couple hundred each if I remember correctly ... Told it was hard to say, but 3 to 6 sessions should do it. ... You're posting via Google groups, ... Your posts of March 25 did ...
    (rec.arts.bodyart)
  • Re: register_globals - turning on
    ... >>default because of the history of PHP. ... >Sessions contain persistent data, ... >>paths are a tad confusing as well. ... >In the case of session data, the web server needs to be able ...
    (comp.lang.php)
  • Session Variables Disappear and Reappear
    ... New to PHP and I've checked previous posts and haven't seen similar problem. ... I can also destroy sessions. ... message will disappear showing the "Please Login Form". ...
    (php.general)
  • Re: register_globals - turning on
    ... >>an Apache module. ... >So basically using the .htaccess is a safe way of enabling sessions to ... >>Stick this file on the beginning of every PHP page processed. ... >>In the case of session data, the web server needs to be able ...
    (comp.lang.php)
  • RE: [PHP] Clearing POST variable on page refresh
    ... [PHP] Clearing POST variable on page refresh ... Since you don't want to use sessions, ... Less than a week on an ultra busy server. ... This is most likely not a php thing, but would there be a way to refresh the ...
    (php.general)