sessions trouble
| From: | Leston Drake | Date: | Tue, 18 Jun 2002 17:48:24 +0000 |
| Subject: | sessions trouble | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102742@lists.php.net to get a copy of this message | ||
Hello,
I am unable to retrieve session variables on my local server.
I'm using some code like this to test it (thanks to Ed):
------------------------------------------------------------------
session_start();
echo ":" . $_SESSION["node"] . "<br>";
$_SESSION["node"] = "10.2";
echo ":" . $_SESSION["node"] . "<br>";
------------------------------------------------------------------
Then there is an href link to the same document, to test whether or not it can see $_SESSION["node"] the next time.
It can't.
The output for both requests looks like this:
------------------------------------------------------------------
Warning: Undefined index: node in c:\program files\apache group\apache\htdocs\test5.php on line 3
:
:10.2
test
------------------------------------------------------------------
On another server (http://www.lpsoftware.com/phptest/test5.php) it works as expected. But I can't figure out why it doesn't work here.
I'm running WinME, Apache 1.3.2, Php 4.1.2
I have cookies enabled (actually prompted so I can 'see' it) for my browser.
Is there some setting in php.ini that I need to change?
BTW, being a php newbie I really appreciate the helpful people on this list! You're a great resource.
TIA,
Leston