note 52017 added to function.session-register
| From: | travep14 at excite dot com | Date: | Mon, 18 Apr 2005 22:59:18 +0000 |
| Subject: | note 52017 added to function.session-register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88191@lists.php.net to get a copy of this message | ||
I can get all the examples to work. The thing is, all the examples I've seen all access the
session value on the <i>same page</i> where it is set. How is this session? Session is
only of value if I can click through to the next page and then see the value. See below:
-------------------------------
<?php
session_start();
$_SESSION["Cookiehead"] = "Jenkins";
?>
This is page1.php
<br><br>
Cookiehead value: <? echo $_SESSION["Cookiehead"] ?>
<br><br>
<a href="/test/page2.php">Goto page2.php</a>
--------------------------------
<?php
session_start();
$cookieheadValue = $_SESSION["Cookiehead"];
?>
This is page2.php
<br><br>
Cookiehead value: <? echo $cookieheadValue ?>
<br><br>
<a href="/test/page3.php">Goto page3.php</a>
------------------------------------
What am I missing?
Thanks
----
Manual Page -- http://www.php.net/manual/en/function.session-register.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52017
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52017&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52017&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52017&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52017&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52017&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52017&report=yes
Search -- http://master.php.net/manage/user-notes.php