note 10857 deleted from function.session-register by jimw
| From: | jimw@php.net | Date: | Tue, 18 Dec 2001 22:25:30 +0000 |
| Subject: | note 10857 deleted from function.session-register by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23257@lists.php.net to get a copy of this message | ||
Maybe I am just dense. I just started playing with the joys of sessions about 6 hours ago and
couldn't figure out why my session variable wasn't showing up on the next page. I set the
variable $name = "mike" and then used session_register("name"); on the first
page. Then going to the second page I tried to echo $mike; and got nothing. Well after playing with
the .ini file and downloading and installing 4.0.4Pl1 and still getting a blank page I started
taking pokes in the dark (well it was dark to me anyway.) Not until I used
session_register("name"); on the second page before calling $name did the variable show
up. Is this normal or am I missing something? Seems a bit clumsy to have to register the variable on
each page.