Quote:
Originally Posted by Wolfy
Got a link?
|
Easiest is with PHP, but you could also use javascript to produce the cookies. Sessions are over-rated and actually have several flaws upon creation...not to mention you need to watch your coding habits while working with sessions. I prefer cookies because of those reasons.
Quote:
<?php
// for page 1
$ipp = $_SERVER['PHP_SELF'];
setcookie('my_page1', $ipp, (time()+12800), '/', '', 0);
// for page 2
setcookie('my_page2', $ipp, (time()+12800), '/', '', 0);
// etc
// to check page 1
if(isset($_COOKIE['my_page1'])){
echo 'User has viewed page 1.';
}
// to check page 2
if(isset($_COOKIE['my_page2'])){
echo 'User has viewed page 2.';
}
// etc.
?>
|
You really should just hire a programmer to do it though. It's actually quite simple.