質問編集履歴
3
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
print("Set-Cookie: user=test")
|
18
18
|
|
19
|
-
print(Content-Type: text/html)
|
19
|
+
print("Content-Type: text/html")
|
20
20
|
|
21
21
|
print("")
|
22
22
|
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,6 +14,12 @@
|
|
14
14
|
|
15
15
|
cookie["user"] = "test"
|
16
16
|
|
17
|
+
print("Set-Cookie: user=test")
|
18
|
+
|
19
|
+
print(Content-Type: text/html)
|
20
|
+
|
21
|
+
print("")
|
22
|
+
|
17
23
|
```
|
18
24
|
|
19
25
|
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -1 +1,27 @@
|
|
1
1
|
先程質問[質問](https://teratail.com/questions/113147)させていただき回答もいただけたのですが回答していただいた方法で1回は成功したのですが2回目以降失敗してしまいます。他に方法があればお願いします。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
コード
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
```python3
|
12
|
+
|
13
|
+
cookie = cookies.SimpleCookie(os.environ.get("HTTP_COOKIE",""))
|
14
|
+
|
15
|
+
cookie["user"] = "test"
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
```python3
|
22
|
+
|
23
|
+
cookie = cookies.SimpleCookie(os.environ.get("HTTP_COOKIE",""))
|
24
|
+
|
25
|
+
print(cookie["user"].value)
|
26
|
+
|
27
|
+
```
|