Re: [PHP] Saving variables in a session in a destructor

2004-06-29 Thread Curt Zirzow
* Thus wrote David Goodlad: > Unless I do an unset($sm); at the end of a script like this, the > $_SESSION array will never contain the state=>foobar key/value. > > Can anyone offer some insight into this? http://bugs.php.net/27555 Curt -- First, let me assure you that this is not one of thos

[PHP] Saving variables in a session in a destructor

2004-06-29 Thread David Goodlad
Hi all Using PHP5, I am trying to save some properties of an object when it is destroyed in its destructor, __destruct(). However, I have found that the session variable is NOT stored unless I explicitly destroy the object using unset(). If I leave php to finish executing the script and automati