0
有我的問題,爲什麼Django的會話ID爲空值,在餅乾返回的Set-Cookie爲什麼sessionid是空字符串返回響應django上的Set-Cookie?
但是會話ID值是空的,但設置設置Cookie,
要求:
Cookie: sessionid=;csrftoken=BF8nOVWsMJaX9Gi3aJijGSO97iTyLpNY
這裏會話ID現在是空的響應從Django的這個請求:
HTTP/1.1 200 OK
Date: Sun, 09 Oct 2016 08:17:15 GMT
Content-Type: application/json
Connection: keep-alive
Set-Cookie: sessionid=; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/
Content-Length: 18
爲什麼任何檢查會話ID是空的或者沒有從Django的?和響應就像沒有設置Cookie:
HTTP/1.1 200 OK
Date: Sun, 09 Oct 2016 08:17:15 GMT
Content-Type: application/json
Connection: keep-alive
Content-Length: 18