Showing questions tagged: Show all questions

Programatically setting cookies using javascript doesn't work on expired cookies

Hello, I will try to explain as best as I can. In our web app, for authentication, we manually set our cookies (document.cookie = cookie) after receiving the tokens from… (read more)

Hello, I will try to explain as best as I can.

In our web app, for authentication, we manually set our cookies (document.cookie = cookie) after receiving the tokens from the login request. We work with 2 cookies, 1 for the access and 1 to refresh the access one if it expires. The refresh cookie has a longer time to expire.

When we login on a fresh session with no cookies at all in the storage tab in the dev tools, all is fine. I actually tested this by setting a random cookie and then using the debugger to add a breakpoint on the very next line of code and then typing document.cookie in the console and it is present.

The problem appears when trying to login after the cookies expired. They are still present in the storage tab in the dev tools. Somehow, manually setting the cookies again doesn't actually set the cookies or it takes some time and our app is stuck on the login page because it doesn't pass our checks that it actually has the access cookie. Using the same test described above, re-setting a cookie that expired and using the debugger again to add a breakpoint on the very next line of code and then typing document.cookie in the console does not show the cookie.

This issue does not reproduce on other browsers and it started with version 116.0.3.

For a more step by step to reproduce the issue: 1. Use document.cookie = cookie with a expiry time of 20 seconds 2. Wait for 20 seconds to pass 3. Set the same cookie again 4. Use the debugger to set a breakpoint after setting the cookie 5. Type document.cookie in the console whilst in the breakpoint pause 6. The cookie doesn't show in the document.cookie call

Asked by 6pjwgzk4x7 5 hours ago

Saved logins does not work on youtube

I switched from chrome to firefox like 2 days ago. Everything went good, but every time i go to youtube it does not remember my login. I have to click the login button an… (read more)

I switched from chrome to firefox like 2 days ago. Everything went good, but every time i go to youtube it does not remember my login. I have to click the login button and use my phone to confirm the login. Afterwards i get send to an error page only saying "something went wrong". If i click the login button again it suddenly works and i can use my youtube like i used to on Chrome. I use my google account for youtube. Every other login works just fine Reddit, Disney+, Twitch, Prime. I Cleared all my cookies and history and even reinstalled Firefox. only youtube still has this problem. I even added the youtube and google login page to the saved logins. Does someone can offer any help ?

Asked by daniel 19 hours ago

Third party cookies are blocked, despite of config change

We use FireFox 118+ . our product needs to collect all cookies, including 3rd party cookies from any domain loaded. * We have turned off "Total Cookie Protection" by s… (read more)

We use FireFox 118+ . our product needs to collect all cookies, including 3rd party cookies from any domain loaded.

* We have turned off "Total Cookie Protection" by selecting Custom privacy settings and un-checking all check boxes (sceenshot attached)
  • Also turned off "Enhanced Tracking Protection" for the website

But, when we browse to any site, the collected cookies under cross-domain are either empty or less compared to chrome.

Is there any other setting we can use to collect all the cookies ?

ex domain : https://www.santander.com/es/home , if you compare the cookies collected with chrome are much more than whats captured in FireFox.

Please help, this is crucial

Thanks,

Asked by Seema Hanji 19 hours ago

Last reply by Seema Hanji 11 hours ago