<?php
setcookie("user", "Alex Porter", time() + 3600);
?>
<html>
<body>
<body>
</body>
</html>
쿠키 사용 예제
<html>
<body>
</html>
쿠키 사용 예제
<html>
<body>
<?php
if (isset($_COOKIE["user"])) {
echo "Welcome " . $_COOKIE["user"] . "!<br/>";
} else {
echo "Welcome guest!<br/>";
}
?>
if (isset($_COOKIE["user"])) {
echo "Welcome " . $_COOKIE["user"] . "!<br/>";
} else {
echo "Welcome guest!<br/>";
}
?>
</body>
</html>
</html>


::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::