setSecureCookie

The setSecureCookie() method enables or disables receiving information from first-party cookies only over a secure connection. Only websites with the HTTPS protocol will be able to access these cookies.

Syntax

setSecureCookie(secure)
setSecureCookie(secure): void
setSecureCookie(secure): void
setSecureCookie(secure): void
setSecureCookie(secure): void
setSecureCookie(secure): void
setSecureCookie(secure): void

Parameters

Secure (boolean, required)

Whether information from first-party cookies are sent only over a secure connection.

Examples

To send information over a secure connection:

_paq.push(["setSecureCookie", true]);
setSecureCookie(secure): void
setSecureCookie(secure): void
setSecureCookie(secure): void
setSecureCookie(secure): void
setSecureCookie(secure): void
setSecureCookie(secure): void

Related methods