in your accept page you would need to add the following:
Code:
<?php setcookie("TOS", Yes, time()+36000, "/"); ?>
This then sets a cookie to say that they have accepted..
Then on your TOS page you would need to add the following code around the page
Code:
<?php
if(isset($_COOKIE['TOS'])){
$Agree = $_COOKIE['TOS'];
if($Agree == Yes){
*CODE TO REDIRECT TO HOMEPAGE HERE* }
if(!isset($_COOKIE['TOS'])){ *CODE DISPLAYING TOS ACCEPT AND CANCEL HERE* }
?>
Try that.. that should work.
I use this sort of code to check if my users are logged in on my website.
Explanation (TOS PAGE):
If cookie TOS is set on users computer.. check to see if the variable says Yes..
If so redirects to home page
If no cookie is present shows TOS
-SouLz