note 66093 added to ref.session
| From: | bsdder at 163 dot com | Date: | Sun, 14 May 2006 15:54:22 +0000 |
| Subject: | note 66093 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111269@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 219.239.98.8
Probable Submitter: 219.159.82.241
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/note/edit/66093
Del: integrated -- http://master.php.net/note/delete/66093/integrated
Del: useless -- http://master.php.net/note/delete/66093/useless
Del: bad code -- http://master.php.net/note/delete/66093/bad+code
Del: spam -- http://master.php.net/note/delete/66093/spam
Del: non-english -- http://master.php.net/note/delete/66093/non-english
Del: in docs -- http://master.php.net/note/delete/66093/in+docs
Del: other reasons-- http://master.php.net/note/delete/66093
Reject -- http://master.php.net/note/reject/66093
Search -- http://master.php.net/manage/user-notes.php