搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Get sessionid of cookie in Web Console

  • 無回覆
  • 1 有這個問題
  • 7 次檢視
more options

In the "Cookies" Storage Type in Storage Inspector (Shift+F9):

Name Value ... ... csrftoken AB...c sessionid XY...z ... ...

However, in Web Console (Ctrl+Shift+K), if I execute console.log(document.cookie), the only thing I get is "csrftoken=AB...c". "sessionid=XY...z" is missing.

How can I get the sessionid of the cookie in Web Console?


Linux ... 5.11.7-arch1-1 #1 SMP PREEMPT ... x86_64 GNU/Linux

Archlinux

Firefox 87.0


---- In the "Cookies" Storage Type in Storage Inspector (Shift+F9): Name Value ... ... csrftoken AB...c sessionid XY...z ... ... However, in Web Console (Ctrl+Shift+K), if I execute ''console.log(document.cookie)'', the only thing I get is "csrftoken=AB...c". "sessionid=XY...z" is missing. '''How can I get the sessionid of the cookie in Web Console?''' ---- Linux ... 5.11.7-arch1-1 #1 SMP PREEMPT ... x86_64 GNU/Linux Archlinux Firefox 87.0 ----

由 user200963363964062513567165649606730656361 於 修改