cookie question
Moderator: General Moderators
cookie question
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?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
you could set up a redirect page, that sets the cookie, then bounces them to the real page..
[edit] something like this: not tested
sending page:redir.php :
[edit] something like this: not tested
sending page:
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");
?>