RE: session extension
| From: | Harald Radi | Date: | Thu, 06 Dec 2001 18:16:56 +0000 |
| Subject: | RE: session extension | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72771@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> You mean, when the session is destroyed it should call
> __destroy_callback?
exactly.
> Anyways, don't those objects store a resource handle in their
> properties?
"The magic functions __sleep and __wakeup
serialize() checks if your class has a function with the magic name __sleep. If so, that function is
being run prior to any serialization. It can clean up the object and is supposed to return an array
with the names of all variables of that object that should be serialized."
i intended to handle the resources by myself and return only an unique identifier to the session. so
the session extension won't ever see a resource. do you see a problem so far ?
harald
-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4
iQA/AwUBPA+2F61+myS9SSHxEQJhngCfV0A+50aYesZGE7vQA1eNqz4XmgUAnjPC
Z7gRZnGnTs/gou61s8KY7iWQ
=RQy+
-----END PGP SIGNATURE-----