You forgot the session_start(); call. You will have to do that before you can tap into registered vars. Hope that helps. Jas
"Alexander Ross" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to understand sessions so I can set session variables. I set up 2 > very simple pages: > > Page 1: > > <? > session_start(); > $test_var = "froggy"; > session_register('test_var'); > ?> > <a href="page2.php">Click here</a> > > > Page 2: > > <? > print $test_var."!"; > ?> > > > This doesn't seem to work though. $test_var doesn't seem to have a value > when I go the second page. What am I missing. Thanks for helping a newbie. > > Alex > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php