The problem is, with my small snippet of code, is its looping through adf-ly again and again, which will just make people leave the site all together. In brief, I am trying to add some php to an existing wordpress to redirect it through adf-ly once per person, per visit. The idea is this...
visit the page > go through adf-ly after 5 seconds just the once > return to page
Here is my code :
Code: Select all
if (!isset($_SESSION['adflyused']))
{
header( "refresh:5;url=[LINK REMOVED FOR FORUM]" );
$_SESSION['adflyused'] = true;
}
Thanks, Simon.