functions to be called just before session_destroy?
i want to call certain functions/ php files on session_destroy
say to delete entries in database etc..
if a user logs in some info is stored to d/b on his login.. user remains inactive for some time..the session is timed out..now the info in the d/b may be misleading..so i want it deleted on session_destroy..HOW DO I DO IT?!!!
pls..help..!
session_set_save_handler()?
regarding the things to happen *on* session_destroy()
i've got hold of session_set_save_handler() which takes a list of ptrs.. ie names of user defined functions open read write close desrtoy and garbage collect.. to send session data into d/b.. by setting session_handler to user in php.ini
but i think this doesn't allow registered variables...
why so? now that i can delete data *on* session_destroy
i want to kknow how to do so on time out????