Hi! :-)
I reload on page 2 in order to check if the cookie is there or goes away. (but it is never there now, after I added the time thing)
Klas
This is Page 1 (labb5.php)
<?php
setcookie("testcookie", "The Cookie2!!!", time() + 60);
?>
<title>Page 1 </title>
<body>
<p>
Cookie name :
<?php echo "$testcookie"; ?>
<p>
Go to <A HREF="labb5-2.php"> Page 2</A>
</body>
And this is page 2 (labb5-2.php)
<title>Page 2</title>
<body>
<p>
Page 2<p>
Cookie name :
<?php echo "$testcookie"; ?>
</body>