Show sourcecode
The following files exists in this folder. Click to view.
webbsrvprg1/exercises/ovning7/uppgift1/
index.php
17 lines UTF-8 Windows (CRLF)
<?php
$first = "first";
setcookie($first, true, time() + 10);
?>
<html>
<body>
<?php
if (isset($_COOKIE[$first])) {
echo "Välkommen tillbaks";
} else {
echo "Välkommen för första gången";
}
?>
</body>
</html>