Menu
a user is browing my site then he leaves my site by either closing the browser or clicking on a link which takes him to another site.
After the user leaves my site, I need to update some information in the database. Is there some function in php I can use which will execute when the user leaves my site?