|
When a user sees an ending page a record is made, if that record is present then only the first ending they viewed would be delivered. This can be accomplished by either storing their IP or Session ID in a database, or giving them a cookie. Obviously both can be undermined however if the reader doesn't know that there are alternative endings they may not be looking for a way around it.
page1.php -> page2.php -> end.php
end.php
step 1) look for cookie, if isset(cookie) then echo cookie.jpg
step 2) if !isset(cookie) then $deliver = random(image), then setcookie(cookie, $deliver) then echo $deliver
thats one way
-Mike
|