new JSJaCCookie
Creates a new Cookie
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the value to store |
value |
String | The value to store |
secs |
int | Number of seconds until cookie expires (may be empty) |
domain |
String | The domain for the cookie |
path |
String | The path of cookie |
- Source:
- JSJaCCookie.js, line 23
Members
-
domain :string
-
The cookie's domain
- Source:
- JSJaCCookie.js, line 50
-
name :String
-
This cookie's name
- Source:
- JSJaCCookie.js, line 32
-
path :string
-
The cookie's path
- Source:
- JSJaCCookie.js, line 56
-
secs :int
-
Time in seconds when cookie expires (thus being delete by browser). A value of -1 denotes a session cookie which means that stored data gets lost when browser is being closed.
- Source:
- JSJaCCookie.js, line 44
-
value :String
-
This cookie's value
- Source:
- JSJaCCookie.js, line 37
Methods
-
erase
-
Deletes this cookie
- Source:
- JSJaCCookie.js, line 80
-
getName
-
Gets the name of this cookie
- Source:
- JSJaCCookie.js, line 90
Returns:
The name -
getValue
-
Gets the value of this cookie
- Source:
- JSJaCCookie.js, line 110
Returns:
The value -
setDomain
-
Sets the domain of this cookie
Parameters:
Name Type Description domain
String The value for the domain of the cookie - Source:
- JSJaCCookie.js, line 131
Returns:
This cookie -
setName
-
Sets the name of this cookie
Parameters:
Name Type Description name
String The name for this cookie - Source:
- JSJaCCookie.js, line 100
Returns:
This cookie -
setPath
-
Sets the path of this cookie
Parameters:
Name Type Description path
String The value of the path of the cookie - Source:
- JSJaCCookie.js, line 142
Returns:
This cookie -
setValue
-
Sets the value of this cookie
Parameters:
Name Type Description value
String The value for this cookie - Source:
- JSJaCCookie.js, line 120
Returns:
This cookie -
write
-
Stores this cookie
- Source:
- JSJaCCookie.js, line 61
-
<static> get
-
Reads the value for given
name
from cookies and returns its valued newParameters:
Name Type Description name
String The name of the cookie to read - Source:
- JSJaCCookie.js, line 178
Throws:
CookieException when cookie with given name could not be foundReturns:
The value of the cookie read -
<static> read
-
Reads the value for given
name
from cookies and return newCookie
objectParameters:
Name Type Description name
String The name of the cookie to read - Source:
- JSJaCCookie.js, line 156
Throws:
CookieException when cookie with given name could not be foundReturns:
A cookie object of the given name -
<static> remove
-
Deletes cookie with given
name
Parameters:
Name Type Description name
String The name of the cookie to delete - Source:
- JSJaCCookie.js, line 187
Throws:
CookieException when cookie with given name could not be found