Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- keep track of user page view using cookie php
- setcookie('visitcount',1+$_COOKIE['visitcount'],time()+60*60);
- $visitcount = $_COOKIE['visitcount'];
- print "Number of views: ".$visitcount;
- setcookie('visitcount',1+$_COOKIE['visitcount'],time()+60*60);
Advertisement
Add Comment
Please, Sign In to add comment