session_set_save_handler
| From: | Peter Kocks | Date: | Tue, 29 Feb 2000 20:23:19 +0000 |
| Subject: | session_set_save_handler | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-11196@lists.php.net to get a copy of this message | ||
Hi,
I'd like to register a function to be called whenever a session is destroyed
or when the max lifetime is exceeded. Basically, there is some cleanup I'd
like to do that is not directly related to the session functions. I see
there is a function:
session_set_save_handler ("open", "close", "read", "write",
"destroy",
"gc");
But, what I really want is some type of callback within the regular destroy
function so that I can do some cleanup. Is there anyway to do this? A
register_shutdown() for sessions?
Thanks
--pk