Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

I Wrote code in javascript: It stores cookies on this computer & it read ok. Now it won't read cookie from the local file as in file:///pagewithcookie.html

  • 9 replies
  • 3 have this problem
  • 1 view
  • Last reply by Lineaxe

more options

The Same code is running with other computers running Firefox on Linux and Windows. It used to work on this machine as well but it doesn't find the cookie any more. I have no idea , I have tried finding cookie with "storage inspector". I see the cookie is generated but it refuses to read it in Ubuntu computer. But it works Ok and finds the cookie in Firefox browser with the windoz & raspbian computers. The whole thing is driving me COOOOOKKKKIEEEE!!!!...

      I think I will go get some milk now...
''' The Same code is running with other computers running Firefox on Linux and Windows. It used to work on this machine as well but it doesn't find the cookie any more. I have no idea , I have tried finding cookie with "storage inspector". I see the cookie is generated but it refuses to read it in Ubuntu computer. But it works Ok and finds the cookie in Firefox browser with the windoz & raspbian computers. The whole thing is driving me COOOOOKKKKIEEEE!!!!...''' I think I will go get some milk now...

Modified by Lineaxe

All Replies (9)

more options

If crying and whining won't do it, what else have I got left?

Modified by Lineaxe

more options

SAFE MODE

In Firefox Safe mode these changes are effective:

  • all extensions are disabled (about:addons)
  • default theme is used (no persona)
  • userChrome.css and userContent.css are ignored (chrome folder)
  • default toolbar layout is used (file: localstore-safe.rdf)
  • Javascript JIT compilers are disabled (prefs: javascript.options.*jit)
  • hardware acceleration is disabled (Options > Advanced > General)
  • plugins are not affected
  • preferences are not affected

TEST if issue is not there then is extensions or Profile.............

Please Refresh but do this 1st: Delete your Cookies and Cache and TEST.

then

TEST....... If no issues then Extensions which need to be added back in 1 at a time and tested ..... Or it is your Profile : Make a new one and test ...:

If is your Profile :

Note: Any customization will revert back to default, you will also need to reinstall Extensions.

Please let us know if this solved your issue or if need further assistance.

more options

Pass the cookies and milk please

more options

I'm usually surprised by differences between Firefox running on Windows, Mac, and Linux. I know that Linux has multiple flavors of Firefox because distributions customize it, and I don't know whether that might be a factor.

If you check Firefox's Browser Console, can you find any relevant error or warning messages? https://developer.mozilla.org/docs/Tools/Browser_Console

more options

Hi I have done all the above steps. I deleted cacke,cookies etc. I restarted , I ran it with addons disabled. I also uninstalled Firefox via synaptic and reinstalled it. I use Browser window and noted some warnings that came up (from my testing some code I got online) . These warnings have been there when I could read the cookie as well. Not sure if they have anything to do with FF not finding the cookie. If I revisit the site it sees the cookie but when I close FF and open it again , it won't see the cookie. ...Meanwhile the code grows 'n grows like a wildflower... Update: no more warnings or errors show up in FF Browser so that can be eliminated as a cause or possible problem.

Modified by Lineaxe

more options

Lineaxe said

If I revisit the site it sees the cookie but when I close FF and open it again , it won't see the cookie.

Hmm, do you see the cookie if you use the Storage Inspector on the page? See: https://developer.mozilla.org/docs/Tools/Storage_Inspector

If the cookie is getting cleared when you end your Firefox session, that points to other issues, such as the cookie having "session only" duration or Firefox (or an add-on?) clearing history at shutdown.

more options

Hi , my cookie persistence on all machines is set to a far distant date. No issues on that I believe. Seems something might be clearing the webpage history at shutdown. But not any bookmarks,etc. Other sites that are not local still can access their cookies, but not my webpage. Anyhow, I will shut this session down to see if anything else might get erased. Also when I start up again the cookie exists, as seen in preferences/security/cookies. So it's not that the cookie is erased at all, the webpage just won't find it anymore. I should mention My cookie does not have a host associated with it like all the other cookies that I have from other internet websites have. It is a local cookie (file). The host value needed would be changing names for each machine and so far I had left it blank. Well it did work for several weeks this way. what could go wrong now ?

Modified by Lineaxe

more options

It is a cookie for a page accessed on file:/// protocol? I didn't realize that was even possible.

more options

Well I also have a couple of webpages that are being loaded into the page that created and reads the cookie. The cookie started not working when I modified one of those, so I am also wondering if it won't find cookie because it isn't accessing them properly now. And now i am coding a worker thread into the mix.... So , I hope I do discover where the problem now lies on this machine (ubuntu) . I note that XP, and raspbian are having no problems so far with everything I have written (and added in from others) . I will also test it all with windows 7 soon. Hard enuf running around testing these 4 machines and a Tablet :) without switching any operating systems over.

Update: not using the Worker threads with FF anymore, I have a better solution written for this project that works.

Modified by Lineaxe