#native_company# #native_desc#
#native_cta#

Cookie Based Entrance Page

By Neil
on October 7, 2006

Version: 1.02

Type: Full Script

Category: HTTP

License: GNU General Public License

Description: If your site has an entrance page and you would like that entrance page to ONLY be displyed if they haven’t seen it, this is what you need.

When someone views your site, a page is called and if that someone has not visited the Entrance page,it will create a cookie on the client’s computer upon entry. If that someone has already visited your site and a cookie has been made, it will show the main page of your site. All of which can be configured. Easy to do. Only have to change 4 lines.

<?

if(empty($_COOKIE['SOMETHING'])){ 
setcookie("SOMETHING","vistedmain",time()+60*60*24*30); 
include("main.html"); 
}else{ 
include("skiptonext.html"); 
}  

?>