Solved my main problem. I was assuming that variables registered with
$_SESSION were passed by reference. Apparently they're passed by value.
I moved the line '$_SESSION['order'] = $order;' from the top of the page 1
php code (before any properties for the order object are set), to the end of
the
Also, this means that each succeeding page that uses and changes the session
variable must read it in at the beginning of the code and reset it to
$_SESSION after changes are made, i.e.:
$order = $_SESSION['order'];
..
..
code that changes $order
..
..
$_SESSION['order'] = $order
Solved my
On 4 Apr 2004 Randall Perry wrote:
Solved my main problem. I was assuming that variables registered with
$_SESSION were passed by reference. Apparently they're passed by value.
*Passing* by value or by reference has to do with function parameters,
not array values. However you can assign one
Randall Perry [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
Solved my main problem. I was assuming that variables registered with
$_SESSION were passed by reference. Apparently they're passed by value.
Wouldn't make very much sense to pass by reference, would it? Seems to me
like
Had a previous thread on this issue. Started working on it again and am
running into new bugs, so thought I'd start a new thread.
Read thoroughly through session examples in docs and here's how I tried to
pass an object from one page to another:
page 1
__
// include class definition file
5 matches
Mail list logo