note 66093 rejected from ref.session by nlopess
| From: | nlopess@php.net | Date: | Sun, 14 May 2006 16:04:44 +0000 |
| Subject: | note 66093 rejected from ref.session by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-111270@lists.php.net to get a copy of this message | ||
Note Submitter: bsdder at 163 dot com
----
I have setup two files as following:
test1.php:
<?php
session_start();
$_SESSION['myds'] = "who is that ";
?>
test2.php
<?php
session_start();
echo $_SESSION['myds'] ;
print_r($_SESSION);
?>
when i put the test1.php and test2.php in the same directory or put test2.php in the subdirecotry
that test1.php resides, the test2.php can print the session values :
who is that Array ( [myds] => who is that ).
But when i put test2.php in the upper directory that test1.php resides, test2.php CAN'T print
the session values , the output as following :
Array ()
My system is Freebsd5.4 , apache 2.2.2 , php5.1.4
Who can give me some suggestions ? thanks.