質問編集履歴
5
title
CHANGED
File without changes
|
body
CHANGED
@@ -29,5 +29,7 @@
|
|
29
29
|
|
30
30
|
メインページ: http://localhost/cgi-bin/index.py
|
31
31
|
|
32
|
+
同一ドメインです。
|
33
|
+
|
32
34
|
Python3.6
|
33
35
|
知りたいこと:どうすれば他のページでもCookieを取得出来るのか 回答よろしくお願いします。
|
4
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
### 補足情報(FW/ツールのバージョンなど)
|
27
27
|
|
28
|
-
ログインページ: http://localhost/cgi-bin/
|
28
|
+
ログインページ: http://localhost/cgi-bin/login.py
|
29
29
|
|
30
30
|
メインページ: http://localhost/cgi-bin/index.py
|
31
31
|
|
3
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,5 +25,9 @@
|
|
25
25
|
|
26
26
|
### 補足情報(FW/ツールのバージョンなど)
|
27
27
|
|
28
|
+
ログインページ: http://localhost/cgi-bin/logon.py
|
29
|
+
|
30
|
+
メインページ: http://localhost/cgi-bin/index.py
|
31
|
+
|
28
32
|
Python3.6
|
29
33
|
知りたいこと:どうすれば他のページでもCookieを取得出来るのか 回答よろしくお願いします。
|
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,6 +11,11 @@
|
|
11
11
|
|
12
12
|
```python3
|
13
13
|
cookie = cookies.SimpleCookie(os.environ.get("HTTP_COOKIE",""))
|
14
|
+
cookie["user"] = "test"
|
15
|
+
```
|
16
|
+
|
17
|
+
```python3
|
18
|
+
cookie = cookies.SimpleCookie(os.environ.get("HTTP_COOKIE",""))
|
14
19
|
print(cookie["user"].value)
|
15
20
|
```
|
16
21
|
|
1
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|