With total disregard for any kind of safety measures "Philip D
Heady" <pd*****@comcast.net> leapt forth and uttered:
is this valid?
session_register('variable1','variable2','variable 3','etc');
If not, how can you register a bunch all at once without having
to use a line for each variable?
You shouldn't be using it at all. Use $_SESSION['foo'] = 'bar';
From the PHP manual (which, if you'd read, you would never have
needed to post this question in the first place):
Caution
If you want your script to work regardless of register_globals, you
need to instead use the $_SESSION array as $_SESSION entries are
automatically registered. If your script uses session_register(),
it will not work in environments where the PHP directive
register_globals is disabled.
register_globals: important note: Since PHP 4.2.0, the default
value for the PHP directive register_globals is off. The PHP
community encourages all to not rely on this directive but instead
use other means, such as the superglobals.
--
Phil Roberts | Nobody In Particular |
http://www.flatnet.net/