|
Posted by radmission05@gmail.com on 01/13/08 08:28
On Jan 13, 12:06 am, "Peter Pei" <yan...@telus.com> wrote:
> you missed the point, they share value, change one, the other one changed to
> the same value. you obviously didn't understand this side of php
> "Sure you can. The two have no relationship to each other.
> $_SESSION['foo'] is an element of the $_SESSION array with the index of
'foo'."
I agree with jerry stuckle
$_SESSION is different from $foo;
$_SESSION is different from $_GET['foo'];
$_GET['foo'] is the same with $foo (if register_global is on, if not
they are different.)
the only relationship with session with $foo or $_GET['foo'], they are
both variables in php.
session used to store variables like $foo, $_GET['foo'] on current
session. thats why we have
session_register(); to register variable on session. coz they are
different.
if they are not different, they will not provide session_register...
Navigation:
[Reply to this message]
|