setVisitorCookieTimeout

The setVisitorCookieTimeout() method sets the expiration time for the visitor cookie (_pk_id.*). The default value is 13 months.

Syntax

setVisitorCookieTimeout(seconds)
setVisitorCookieTimeout(seconds): void
setVisitorCookieTimeout(seconds): void
setVisitorCookieTimeout(seconds): void
setVisitorCookieTimeout(seconds): void
setVisitorCookieTimeout(seconds): void
setVisitorCookieTimeout(seconds): void

Parameters

Seconds (number, required)

The time (in seconds) after which the visitor cookie (_pk_id.*) is removed.

Examples

To set the expiration time to 1 month (2 628 288 seconds):

_paq.push(["setVisitorCookieTimeout", 2628288]);
setVisitorCookieTimeout(2628288): void
setVisitorCookieTimeout(2628288): void
setVisitorCookieTimeout(2628288): void
setVisitorCookieTimeout(2628288): void
setVisitorCookieTimeout(2628288): void
setVisitorCookieTimeout(2628288): void

Related methods