session_start(); // 세션 시작
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>PHP Cookie And Session</title>
</head>
<body>
echo "제가 살고 있는 도시는 {$_SESSION['city']}입니다.<br>";
echo "그 중에서도 {$_SESSION['gu']}에 살고 있습니다.<br>";
print_r($_SESSION); // 모든 세션 변수의 정보를 연관 배열 형태로 보여줌.
</body>
</html>