getConfigVisitorCookieTimeout

To getConfigVisitorCookieTimeout() method returns the expiration time for a visitor cookie (_pk_id.*) in milliseconds.

Syntax

getConfigVisitorCookieTimeout()
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>

Returns

The expiration time for a visitor cookie (_pk_id.*).

Format: In milliseconds. Example: 33955200000.

Type: number

Example

To get the expiration time for a visitor cookie:

_paq.push([function () {  
    console.log(this.getConfigVisitorCookieTimeout());  
}]);
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>
getConfigVisitorCookieTimeout(): Promise<number>

A sample of the return value:

33955200000

Related methods