"Peter Dowie" <[EMAIL PROTECTED]> wrote in message
> Hi,
> I'm using sessions and everytime my script is called, I want to add
> elements of $HTTP_POST_VARS to my $HTTP_SESSION_VARS
> so that I can access them throughout the session.
> I cant seem to get this working. This is what I have:

Why you don't use HTTP_SESSION_VARS???
You don't need to use ression_register/unregister() with


foreach($HTTP_POST_VARS as $k => $v) {
  $HTTP_SESSIN_VARS[$k] = $v;

Important: This kind of code is VERY dangarous unless you check all
$HTTP_POST_VARS and you are sure safe to do that.

> Also what is register_globals ?? Should I have this on or off ?

off. unless you must use app assumes its on, and cannot fix it.

Much easier to write secure code with register_globals=off. (And a
little bit faster)

Yasuo Ohgaki

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to