Click or drag to resize

ReplicationSetCookie Method

Sets an HTTP cookie for the Replication.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public void SetCookie(
	string name,
	string value,
	string path,
	DateTime expirationDate,
	bool secure,
	bool httpOnly
)

Parameters

name
Type: SystemString
The name of the cookie.
value
Type: SystemString
The value of the cookie.
path
Type: SystemString
The path attribute of the cookie. If null or empty, will use remote.getPath()
expirationDate
Type: SystemDateTime
The expiration date of the cookie.
secure
Type: SystemBoolean
Whether the cookie should only be sent using a secure protocol (e.g. HTTPS).
httpOnly
Type: SystemBoolean
(ignored) Whether the cookie should only be used when transmitting HTTP, or HTTPS, requests thus restricting access from other, non-HTTP APIs.
See Also