Jump To …

cookies.coffee

See RFC 2109 and document.cookie

Domain/path specific scope around the global cookies collection.

undefined

Returns all the cookies for this domain/path.

undefined

Returns the value of a cookie.

  • name -- Cookie name
  • Returns cookie value if known
undefined

Sets a cookie (deletes if expires/max-age is in the past).

  • name -- Cookie name
  • value -- Cookie value
  • options -- Options max-age, expires, secure, domain, path
undefined

Delete cookie before setting it, so we only store one cookie (per domain/path/name)

undefined

Deletes a cookie.

  • name -- Cookie name
undefined

Clears all cookies.

undefined

Update cookies from serialized form. This method works equally well for the Set-Cookie header and value passed to document.cookie setter.

  • serialized -- Serialized form
undefined

Handle case where we get array of headers.

undefined

Delete cookie before setting it, so we only store one cookie (per domain/path/name)

undefined

Adds Cookie header suitable for sending to the server.

undefined

The default separator is a line break, useful to output when debugging. If you need to save/load, use comma as the line separator and then call cookies.update.

undefined

Creates and returns cookie access scopes to given host/path.

undefined

Add cookies accessor to window: documents need this.

undefined

Used to dump state to console (debugging)

undefined

browser.saveCookies uses this

undefined

browser.loadCookies uses this

undefined

Returns name=value pairs

undefined

Accepts serialized form (same as Set-Cookie header) and updates cookie from new values.

undefined