Nancy - Adobe Comm. Expert wrote:
> And now you know why I don't really like PHP. :)
> Hasn't PHP changed the way you do this several times
during its evolution ..
> so what version of PHP is on the server would make a
difference?
Not several times, no. Sessions were first introduced in PHP
4.0.0 (May
2000) and used the session_register() syntax. The $_SESSION
syntax was
introduced in PHP 4.1.0 (December 2001).
The session_register() syntax doesn't work if
register_globals is off.
This has been the default setting since PHP 4.2.0 (April
2002), although
some ill-advised hosting companies turn it back on. The
register_globals
directive, if turned on, automatically creates variables
derived from
the name of input elements. So, for example, the value of a
text field
called "email" is automatically stored in a variable called
$email. Very
convenient, but a massive security hole. PHP 6 will remove
register_globals permanently.
So, yes, session creation changed in the early days, but the
recommended
method (using the $_SESSION syntax) has remained stable for
the past
five years.
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/