<?php
header("Content-Type: text/html; charset=UTF-8");
setcookie("testCookie","쿠키다", time()+10);
?>
<?php
header("Content-Type: text/html; charset=UTF-8");
echo "쿠키 값: ".$_COOKIE['testCookie'];
?>
'PHP > 새로운문법' 카테고리의 다른 글
예외처리(try ~ catch) (0) | 2017.11.09 |
---|---|
간단한 로그인예제(Session) (0) | 2017.11.09 |
PDO 데이터 베이스 접속 (0) | 2017.11.09 |
난수생성 (0) | 2017.11.08 |
시간관련 함수 (0) | 2017.11.08 |