Cookie
HTTP cookie
Operations
- New
- AddAttrib
- Expire
- GetAttrib
- GetName
- GetValue
- RemoveAttrib
- SetExpiration
- SetName
- SetValue
- ToShortString
- ToString
AddAttrib
Adds a cookie attribute
method : public : AddAttrib(name:String) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| name | String | attribute name |
Return
| Type | Description |
|---|---|
| Bool | true if added, false otherwise |
AddAttrib
Adds a cookie attribute
method : public : AddAttrib(name:String, value:String) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| name | String | attribute name |
| value | String | attribute value |
Return
| Type | Description |
|---|---|
| Bool | true if added, false otherwise |
GetAttrib
Get cookie attribute
method : public : GetAttrib(name:String) ~ StringParameters
| Name | Type | Description |
|---|---|---|
| name | String | attribute name |
Return
| Type | Description |
|---|---|
| String | cookie attribute value |
GetValue
Get cookie value
method : public : GetValue() ~ StringReturn
| Type | Description |
|---|---|
| String | cookie value |
New
Constructor
New(name:String, value:String, is_debug:Bool)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | cookie name |
| value | String | cookie value |
| is_debug | Bool | true to display debug information |
New
Constructor
New(name:String, value:String)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | cookie name |
| value | String | cookie value |
New
Constructor
New(cookie_str:String, is_debug:Bool)Parameters
| Name | Type | Description |
|---|---|---|
| cookie_str | String | cookie string |
| is_debug | Bool | true to display debug information |
RemoveAttrib
Removes an attribute
method : public : RemoveAttrib(name:String) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| name | String | attribute name |
Return
| Type | Description |
|---|---|
| Bool | true if added, false otherwise |
SetExpiration
Sets the cookie to expiration date
method : public : SetExpiration(expires:System.Time.Date) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| expires | Date | expiration date |
SetName
Set cookie name
method : public : SetName(name:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| name | String | cookie name |
SetValue
Set cookie value
method : public : SetValue(value:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| value | String | cookie value |
ToShortString
Formats a cookie name and value
method : public : ToShortString() ~ StringReturn
| Type | Description |
|---|---|
| String | string formatted cookie name and value |
ToString
Formats a cookie into a string
method : public : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | string formatted cookie |