note 21396 added to ref.session
| From: | evcin at hotmail dot com | Date: | Sat, 11 May 2002 04:16:41 +0000 |
| Subject: | note 21396 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30456@lists.php.net to get a copy of this message | ||
<? //this is my test1.php
session_start();
echo session_register("count");
if( session_is_registered("count") )
{ echo "OK!" ;}
else {echo "Fail!" ;}
echo $count=0;
$count++;
?>
<? //this is my test2.php
session_start();
if( session_is_registered("count") )
{ echo "OK!" ;}
else {echo "Fail!" ;}
echo "$count";
$count++;
echo session_save_path();
?>
but print error
-----test2 print
Fail!/tmp
----
why???????
help................
:(
--
http://www.php.net/manual/en/ref.session.php
http://master.php.net/manage/user-notes.php?action=edit+21396
http://master.php.net/manage/user-notes.php?action=delete+21396
http://master.php.net/manage/user-notes.php?action=reject+21396