Jump to content

[SOLVED] running code when a user LEAVES a certain page?


galvin

Recommended Posts

Just curious, is there any type of PHP function that does something like...

 

if the current page is left (i.e. clicked away from) {

 

//do this stuff

 

}

 

In other words, if a user goes to thispage.php, they could then click dozens of other links to go to another page on the website.  Rather than put code at the top of ALL of those other sites to unset variables that were set on thispage.php, I was hoping there was some code that could just be put on thispage.php that would unset certain variables when the user LEAVES thispage.php.

 

If that makes any sense, is there anthing like that?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.