搜尋 Mozilla 技術支援網站

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

Learn More

My website session variable is being cleared - intermittently

  • 2 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 cor-el

more options

My application www.myfloorschedule.com has always worked well with Firefox. Beginning last month users report that they are being taken back to the home page while trying to work in the application. This occurs intermittently. Internally, our code does returns you to the home page when the session variable is null. I am able to replicate this problem. It occurs all the time when I turn on strict privacy. But with strict privacy off, it still occurs, although not on every page, all the time.

I suspect Firefox because testing with Chrome and Edge give no similar problem.

Thanks for any ideas on this. Terence

My application www.myfloorschedule.com has always worked well with Firefox. Beginning last month users report that they are being taken back to the home page while trying to work in the application. This occurs intermittently. Internally, our code does returns you to the home page when the session variable is null. I am able to replicate this problem. It occurs all the time when I turn on strict privacy. But with strict privacy off, it still occurs, although not on every page, all the time. I suspect Firefox because testing with Chrome and Edge give no similar problem. Thanks for any ideas on this. Terence

所有回覆 (2)

more options

Make sure you are not blocking content.

https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop also see https://blog.mozilla.org/security/2021/03/23/introducing-smartblock/

https://support.mozilla.org/en-US/kb/smartblock-enhanced-tracking-protection


Diagnose Firefox issues using Troubleshoot(Safe) Mode {web link}

A small dialog should appear. Click Start In Troubleshoot(Safe) Mode (not Refresh). Is the problem still there?


Many site issues can be caused by corrupt cookies or cache.

Warning ! ! This will log you out of sites you're logged in to. You may also lose any settings for that website.

more options

There is a change in Firefox 96 related to cookies and insecure sites.

As a workaround you can modify this pref on the the about:config page to revert this change.

  • about:config => network.cookie.sameSite.laxByDefault = false

See also:

  • about:config => network.cookie.sameSite.laxByDefault.disabledHosts

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.