Sending a user to a 'splash' page the first time they visit your site seems like a pretty simple task, but its not. At first glance I thought it would easily work a bit like this:
- Set a cookie on the 'splash' page using say: setcookie() that doesn't expire for a very long time
- Check on every other page if the cookie exists on the users browser, if not, send them to visit your splash page
This is not robust enough though, if the users' browser has cookies turned off then they will enter an infinite loop and end up endlessly visiting the splash page - not a very good thing for search engine spiders to do.
The right way to do a splash page:
If that cookie does not exist then send the user to your splash page to view.
Download the Splash Page Script:
The download was not working, however, it should now.