RE: [PHP] is_object($_SESSION['dagobertduck']);
| From: | Justin Palmer | Date: | Wed, 26 May 2004 19:26:20 +0000 |
| Subject: | RE: [PHP] is_object($_SESSION['dagobertduck']); | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187018@lists.php.net to get a copy of this message | ||
Hi,
Make sure you include the Class file in every consecutive page that you
would like to use the object in.
Regards,
Justin Palmer
-----Original Message-----
From: Matthias H. Risse [mailto:usenet@risse.org]
Sent: Wednesday, May 26, 2004 12:04 PM
To: php-general@lists.php.net
Subject: [PHP] is_object($_SESSION['dagobertduck']);
hi:
i wonder why...
if(!is_object($_SESSION['xmlModel']))
echo "there is no obj present, juppa**";
at my place always results in TRUE or
echoing the "there is no.. ", even if var_dump
reports that $_SESSION['xmlModel'] is an
object.
did i screw something up or are there
special policies with the beloved session
variables?
i thought $_SESSION is just mapped
into memory from the session-container
during init on every request and at the end of the
script serialized back to the container?
maybe i missed special policies for
referencing objects stored in the
session-variable?
thanks!
/m
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php