I have a need to notice when a user leaves a site so I can implement
destructors for objects. I know that PHP doesn't supply an object
destructor. I can code that myself. What I don't know how to do is know when
a session is no longer needed, for example, when a user leaves the site or
closes the browser. I thought that register_shutdo wn_function() would help,
but it shuts down at the end of the session regardless of whether I plan to
start it again on the next page.
I'd appreciate any ideas.
destructors for objects. I know that PHP doesn't supply an object
destructor. I can code that myself. What I don't know how to do is know when
a session is no longer needed, for example, when a user leaves the site or
closes the browser. I thought that register_shutdo wn_function() would help,
but it shuts down at the end of the session regardless of whether I plan to
start it again on the next page.
I'd appreciate any ideas.
Comment