PHP Sessions Problem
| From: | Luke Muszkiewicz | Date: | Thu, 19 Apr 2001 16:33:53 +0000 |
| Subject: | PHP Sessions Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49385@lists.php.net to get a copy of this message | ||
Hey Folks:
I am using PHP sessions in IE 5.5 and NN 6 successfully, but I am not able
to retrieve the data from my registered variables in Communicator 4.7. I am
passing the session ID via SID and have turned off cookies in each browser
to simplify testing, although Communicator 4.7 doesn't work with cookies
enabled either.
Research shows that with Communicator 4.7 the session ID is being carried
from one page to the next successfully; however, the registered variables
are not. Outside of the page where they are set and registered, they are
not registered nor set even though the session ID is carried successfully.
session.save_path is set to /tmp. When I start a session in Communicator
4.7, the session file is created in /tmp but it contains no data. When
using IE 5.5 or NN 6, the session file does contain the serialized data for
the registered variables, and everything works as it should.
So, it looks like the problem is that in Communicator 4.7, the serialized
data is not being successfully written to the session file in /tmp. Has
anyone dealt with this problem?
If you're still with me, THANK YOU! I created a simplified test app at the
following URL:
http://puredev.com/session/test1.php
If you would be so kind, open this URL and click on the test2.php link and
you should see the following if the data was retrieved:
Test Results: The session data was transferred.
The code for these two test pages is as follows:
TEST1.PHP
<?php
session_start();
session_register("test");
$test = "The session data was transferred.";
echo "Click this link: <a
href=\"test2.php?".SID."\">test2.php</a>";
?>
TEST2.PHP
<?php
session_start();
echo "Test Results: ".$test;
?>
You can also view the results of phpinfo() for me server at
http://puredev.com/session/phpinfo.php.
Thank you in advance!
-luke
Luke Muszkiewicz
Pure Development, LLC
http://puredev.com