cookie question
Posted: Sat May 29, 2004 9:28 pm
is it possible to set a cookie only when someone clicks a link from your page to another persons page, so that you can later check there cookies to see if they have visited that link?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
...<a href="redir.php?www.google.com">Code: Select all
<?php
$addr = $_SERVER['REQUEST_URI'];
set_cookie('wee','they were ''ere!');
header("Location: $addr");
?>