Is your 'other server' identical (Web Server, PHP Version, register_globals setting)?


-----Original Message-----
From: Mike Hillyer [mailto:[EMAIL PROTECTED]]
Sent: Friday, 20 December 2002 12:43 p.m.
Subject: [PHP] Problem with sessions.

Hello All;

Please forgive me if I am repeating an often asked question, but I am having
a problem with sessions. I simply cannot get them to work.

The sample code I provide works on another server perfectly, this is the
first page:


 $name = "hilde";
 $pass = "mypassword";
 echo "<h1>Session variables set!</h1>";
 echo "<a href=\"page2.php\">go to next page</a>";


When called, the following file arrives in /tmp:



So obviously the session file is being created.
However, when I go to page2.php?PHPSESSID=f9c5e87b35ae66eac64a9a346321b269
Which has this code:

 echo "<h1>The password of $name is $pass </h1>";


I get "The Password of  is "

As a response. Both pages work perfectly on another server, so I am having
trouble finding the problem, especially since the session file is actually
created in /tmp

My PHP.ini file is standard to a RedHat RPM install, but I will include it
as an attachment.

Any help would be greatly appreciated!

Mike Hillyer

The information contained in this email is privileged and confidential and
intended for the addressee only. If you are not the intended recipient, you 
are asked to respect that confidentiality and not disclose, copy or make use 
of its contents. If received in error you are asked to destroy this email 
and contact the sender immediately. Your assistance is appreciated.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to