3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by gotboots
0

Yes i have seen the cookie is created.


setcookie("user", "computer", time()+86400); did i use on my home page

0

this will result in the cookie value being set as computer.

setcookie("user", "computer", time()+86400);

then have this in another page that you link to, eg
have a link to redirect.php on your other pages, the save the following code as redirect.php:

<?
$cookie = $_COOKIE['user'];
$linktosite = "www.google.com?q=$cookie";
header("location: $linktosite"); 
?>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.