Cookie

Overview

gives the Servoy developer access to some Cookie methods for basic cookie operations

Methods Summarized

Methods Detailed

getDomain()

Returns the cookie domain.

Returns: String

Sample

var cookie = client.getCookie('cookieName')
var domain = cookie.getDomain();

getName()

Returns the cookie name.

Returns: String

Sample

var cookie = client.getCookie('cookieName')
var name = cookie.getName();

getPath()

Returns the cookie path.

Returns: String

Sample

var cookie = client.getCookie('cookieName')
var path = cookie.getPath();

getSecure()

Returns the cookie secure attribute.

Returns: Boolean

Sample

var cookie = client.getCookie('cookieName')
var path = cookie.getSecure();

getValue()

Returns the cookie value.

Returns: String

Sample

var cookie = client.getCookie('cookieName')
var value = cookie.getValue();

Last updated