搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Firefox unable to get session cookies

  • 2 个回答
  • 1 人有此问题
  • 30 次查看
  • 最后回复者为 alonkle

more options

I'm writing a program that use firefox's cookies in order to send requests to websites.

Right now, I'm trying to get firefox's cookies. I was able to get most of the cookies from cookies.sqlite file, but session cookies do not appear there. The internet says that while Firefox is running, session cookies are stored on sessionstore.js file. For some reason this file won't update at all. seems like Firefox ignoring sessionstore.js file

I'll really appreciate any answer

I'm writing a program that use firefox's cookies in order to send requests to websites. Right now, I'm trying to get firefox's cookies. I was able to get most of the cookies from cookies.sqlite file, but session cookies do not appear there. The internet says that while Firefox is running, session cookies are stored on sessionstore.js file. For some reason this file won't update at all. seems like Firefox ignoring sessionstore.js file I'll really appreciate any answer

所有回复 (2)

more options

Hi, I believe you answered you own question.

While it is running. As it is actively being written to access is denied. Only when Firefox is shutdown can you access this.

more options

Pkshadow said

Hi, I believe you answered you own question. While it is running. As it is actively being written to access is denied. Only when Firefox is shutdown can you access this.

Thank you very much for you're replay! Unfortunately I still could not solve my problem.

I tried closing Firefox, then check the sessionstore.js file, and It still won't update. I also made sure Firefox not running in the background.

But I did noticed that when I close Firefox, a new file called sessionstore.jsonlz4 was created, and when I open FIrefox, the file deleted. The internet says sessionstore.jsonlz4 is the compression of sessionstore.js, and It does change every time I close Firefox.

My questions now are there is no way for me to get the session cookies while FIrefox is running? Am I right about sessionstore.jsonlz4? and how do I decompress sessionstrore.jsonlz4 (prefer using python)?

Thank you!