// Set the expiration time to 1 day - 60 seconds * 60 minutes * 24 hours * 1 day // You can change the (1) to any number of days you like $expire = time() + 60*60*24*1; // set the cookie using the above expiration time setcookie("no_splash", "1", $expire); // Your splash page content goes here ?>