On Wed, 25 Jul 2001, Johnson, Kirk wrote:

> > Is there anyway to prevent session variables from being
> > overwritten by a get string?
>
> PHP will do this automatically *if* you initialize your session variables to
> *anything* as soon as you register them. For example,
>
> session_register("sess_auth");
> $sess_auth = "";

    Note that session_register() will implicitly commence the
    session, and thus will automatically instantiate all session
    variables.  Hence, the above two lines need to be reversed,
    otherwise you might overwrite the session variable.

    - Sascha                                     Experience IRCG
      http://schumann.cx/                http://schumann.cx/ircg


-- 
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