note 15442 added to function.session-register

From: Date: Mon, 10 Sep 2001 21:35:14 +0000
Subject: note 15442 added to function.session-register
Groups: php.notes 
Request: Send a blank email to php-notes+get-17888@lists.php.net to get a copy of this message
ok..this took me a while to figure out, and i haven't seen any good examples, so hear's a sample session. // First page session_start(); session_register('userID'); $userID = 4; // Next page session_start(); print $HTTP_SESSION_VARS['userID']; // prints 4 don't use $HTTP_SESSION_VARS until the next page, when you're recalling the variable you set in a page before http://www.php.net/manual/en/function.session-register.php

« previous php.notes (#17888) next »