On Wed, March 30, 2005 6:48 am, Jochem Maas said:
I don't really think that's relevant, however, as PHP is storing $name
back *IN* to my $_SESSION data, just because I did:
$name = $_SESSION['name'];
$name = Fooey;
$name is a STRING.
It's not an object.
It should *NOT* be a Reference!
Chris wrote:
Richard Lynch wrote:
On Tue, March 29, 2005 7:58 pm, Chris said:
Richard Lynch wrote:
...
Are you sure you don't have register_globals enabled?
I tested Richards reproduce script on php 5.0.3 on a Debian
machine with the following ini settings:
register_globals = Off
Aha!
Okay, here's the previous session question boiled down to its simplest:
?php
session_start();
if (!isset($_SESSION['name'])){
$_SESSION['name'] = 'Richard Lynch';
}
else{
$name = $_SESSION['name'];
}
/* Assume a ton of code goes here */
$name = 'Fooey';
echo Session
Richard Lynch wrote:
On Tue, March 29, 2005 7:58 pm, Chris said:
Richard Lynch wrote:
Aha!
Okay, here's the previous session question boiled down to its simplest:
?php
session_start();
if (!isset($_SESSION['name'])){
$_SESSION['name'] = 'Richard Lynch';
}
else{
$name =
4 matches
Mail list logo