Namespace rio.Cookie
Methods for managing cookies.
Defined in: cookie.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
rio.Cookie.bind(name, observer)
|
<static> |
rio.Cookie.binding(name, defaultValue)
|
<static> |
rio.Cookie.get(name)
Gets the value of a cookie.
|
<static> |
rio.Cookie.set(name, value)
Sets the value of a cookie.
|
<static> |
rio.Cookie.setDefault(name, value)
Set a default value for a cookie if the cookie is not yet defined
|
Method Detail
<static>
rio.Cookie.bind(name, observer)
- Parameters:
- name
- observer
<static>
rio.Cookie.binding(name, defaultValue)
- Parameters:
- name
- defaultValue
<static>
rio.Cookie.get(name)
Gets the value of a cookie.
- Parameters:
- {String} name
- The name of the cookie to get.
<static>
rio.Cookie.set(name, value)
Sets the value of a cookie.
- Parameters:
- {String} name
- The name of the cookie to set.
- {Object} value
- The value to set in the cookie.
<static>
rio.Cookie.setDefault(name, value)
Set a default value for a cookie if the cookie is not yet defined
- Parameters:
- {String} name
- The name of the cookie to set.
- {Object} value
- The default value to set in the cookie.