Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Setting `delete cookies and site data when firefox is closed`

  • 3 отговора
  • 1 има този проблем
  • 15 изгледи
  • Последен отговор от joepheijnen1994

more options

For our website we de use OAuth2 to login. For this to succeed we need to store some data in de localstorage or sessionstorage. But the data in the storage is cleared when we redirect back from our authenticator. This only happens when `delete cookies and site data when firefox is closed` is checked.

We are not closing Firefox, we are only redirecting the between two different domains. Is this intended?

For our website we de use OAuth2 to login. For this to succeed we need to store some data in de localstorage or sessionstorage. But the data in the storage is cleared when we redirect back from our authenticator. This only happens when `delete cookies and site data when firefox is closed` is checked. We are not closing Firefox, we are only redirecting the between two different domains. Is this intended?

Всички отговори (3)

more options

Try to create an allow exception with the proper protocol (likely https://) for involved domains.

more options

Thanks for the response. What do you mean with 'create an allow exception'? Both domains use https. Can give you an example?

more options

In this link is an code snippet where localstorage is not stored on redirect.

Can you explain why this happens? Google Chrome doesn't have this behaviour when 'Clear cookies and site data when you quit Chrome' is checked.