Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // check to see whether a cookie has been set - if it doesn't exist, create one and log it as a unique visit
- if (!isset($_COOKIE['track']))
- {
- // do your database stuff here
- setcookie('track', 'IP or something as the value'); // set timeout and domain
- }
- ?>
Add Comment
Please, Sign In to add comment