From e22731c8ce267500462b87a7fb1ab70f693eb82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Wed, 30 Mar 2022 20:14:51 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AF=E3=83=83=E3=82=AD=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E4=BE=8B=E3=81=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper/cookie.php | 4 ++-- src/cookie/index.php | 15 +++++++++++++++ ui/cookie/index.php | 9 +++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 src/cookie/index.php create mode 100644 ui/cookie/index.php diff --git a/helper/cookie.php b/helper/cookie.php index 81dbb17..d65cf03 100644 --- a/helper/cookie.php +++ b/helper/cookie.php @@ -1,9 +1,9 @@ diff --git a/src/cookie/index.php b/src/cookie/index.php new file mode 100644 index 0000000..bed3a73 --- /dev/null +++ b/src/cookie/index.php @@ -0,0 +1,15 @@ + time()+60*60*2, 'path' => '/cookie', 'httponly' => true]); + //setrawcookie('lolicon_cookie', $_POST['lolicon_cookie'], ['expires' => time()+60*60*2, 'path' => '/cookie', 'httponly' => true]); + header('Location: /cookie', 301); + } + + $title = 'クッキー'; // 必須・Requirement + $sitedesc = 'クッキーの例え'; // config.phpの文字の交換・Change character of config.php + $siteurl .= '/cookie'; // config.phpの文字に追加・Add to character of config.php + $childview = '../ui/cookie/index.php'; // 必須・Requirement + $mycookie = getcookie('lolicon_cookie'); + //$mycookie = getrawcookie('lolicon_cookie'); +?> diff --git a/ui/cookie/index.php b/ui/cookie/index.php new file mode 100644 index 0000000..74b3417 --- /dev/null +++ b/ui/cookie/index.php @@ -0,0 +1,9 @@ +setcookie +
+ + +
+ +
+getcookie +