SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: session recall
Threaded View
-
Aug 10, 2001, 08:07 #1
- Join Date
- Jul 2001
- Location
- Madison, WI
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
session recall
WinNT, Apache, PHP4
i have a page that creates session values as follows:
...
session_start();
session_register("nickname");
$HTTP_SESSION_VARS["nickname"] = "jimmy crack corn";
// displays "jimmy crack corn"
echo $HTTP_SESSION_VARS["nickname"];
...
then i navigate to another page that should recognize the session history and does the following:
session_start();
// try to do something with "nickname"
$local = $HTTP_SESSION_VARS["nickname"]
when i try to reference the nickname variable i always get an "Undefined index: nickname" error, even though session_is_registered("nickname") always returns true!
am i missing something obvious?
-mattMatt Stephenson
msteph@chorus.net
Bookmarks