Click or drag to resize

DesktopSystemsetCookie Method

Stores a cookie in the runtime.

Namespace:  Openfin.Desktop
Assembly:  OpenfinDesktop (in OpenfinDesktop.dll) Version: 14.1.0-alpha3
Syntax
C#
public void setCookie(
	string url,
	string name,
	string value,
	uint ttl = 0,
	bool secure = false,
	bool httpOnly = false,
	AckCallback callback = null,
	AckCallback errorCallback = null
)

Parameters

url
Type: SystemString
The URL that the cookie is for.
name
Type: SystemString
The key used to lookup the value.
value
Type: SystemString
The value paired with the key (name).
ttl (Optional)
Type: SystemUInt32
The time to till the cookie expires in milliseconds. Never expires when set to 0. Defaults to 0.
secure (Optional)
Type: SystemBoolean
Accessible only on a secured connection (SSL)
httpOnly (Optional)
Type: SystemBoolean
Accessible only on HTTP/HTTPS.
callback (Optional)
Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method succeeds.
errorCallback (Optional)
Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method fails. The reason for failure is passed as an argument.
See Also