note 52017 rejected from function.session-register by betz
| From: | betz@php.net | Date: | Tue, 19 Apr 2005 00:02:10 +0000 |
| Subject: | note 52017 rejected from function.session-register by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88193@lists.php.net to get a copy of this message | ||
Note Submitter: travep14 at excite dot com
----
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