RE: [PHP-DEV] RE: session extension
| From: | Rasmus Lerdorf | Date: | Thu, 06 Dec 2001 18:39:58 +0000 |
| Subject: | RE: [PHP-DEV] RE: session extension | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72774@lists.php.net to get a copy of this message | ||
> > But how would you specify where this code is? Sessions are
> > destroyed out
> > of context.
>
> ok, a __destroy method implies that the method is bound to the object, but i was thinking of a
> static method that gets the session information for the object and can obtain the instance with this
> information and release it. __wakeup would be out of context too, so i have the same issue but this
> can be handled, thats not the problem.
Why not simply create your own session handler functions then and call
your destructor code from the 'destroy' function? See
php.net/session_set_save_handler
-Rasmus