Developer Documentation
15 years ago
5 years ago


(Reporter: benc, Unassigned)





15 years ago
I've finally had some time to put together the information I have on javascript
cookies. This bug is a tracking/discussioni bug for the documents I will produce.

The focus is on a couple items:

- basic usage of document.cookie, and how it works in relation to the other
cookie FE and BE features.

- mozilla javascript permissions for cookies.

- any refernce material I can find.

- documentation of any javascript cookie test files I produce.

(optionally) some discussion about how other browsers work and/or how to test
them to compare the behavior.

Comment 1

15 years ago
go go Ben! :-)

Comment 2

15 years ago
-> assigned to me.

Here's a document that test javascript cookies on your browser and reports if it
is working or not. There is one minor bug where if you hit reload quickly, the
two timestamps will look the same, but I think it gets 99% of the job done for now.

We should start using this for situations where people swear they have "cookies
turned on" but it isn't working.

Comment 4

15 years ago
The sample code looks useful in:

However, at some point, I'd like to do the following:

function setCookie(name, value, expire) -> add support for a secure flag parameter.

function getCookie(Name) -> looks like it only returns the first matching cookie

Comment 5

14 years ago
A major change is bug 223782, which remoed the js-level permissions for cookies.

Comment 6

14 years ago
ben, what is the status of your document?

Comment 7

14 years ago
Uh, still in the works actually. I'll try to have something here by Dec1.

I'm somewhat involved in moving my older docs, and that is a higher priority.
Priority: -- → P2
The wiki will be waiting, if you ever find that round tuit.
Last Resolved: 11 years ago
Resolution: --- → INVALID
Component: Mozilla Developer → Documentation Requests
Product: Documentation → Mozilla Developer Center
Component: Documentation Requests → Documentation
Product: Mozilla Developer Network → Mozilla Developer Network
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation
You need to log in before you can comment on or make changes to this bug.