note 36020 added to function.session-start
| From: | u21cn at hotmail dot com | Date: | Tue, 23 Sep 2003 09:38:22 +0000 |
| Subject: | note 36020 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56955@lists.php.net to get a copy of this message | ||
In The Same IE Window, When I Refreshed Or Change The URL(Test.php Jump To Test1.php), But Always
Get The New Session_ID, So I Can't Get The Session Value, Why?(Env:Win200+Apache+Php4.33)
Example:
Test.php
<?
session_start();
if (!isset($_SESSION['IP']))
$_SESSION['IP'] = getenv("REMOTE_ADDR");
?>
Test1.php
<?
session_start();
echo $_SESSION['IP'];
?>
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36020
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36020&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36020&report=yes