getSessionCookieTimeout
The getSessionCookieTimeout() method returns the expiration time of the session cookie (_pk_ses.*
) in seconds.
Syntax
getSessionCookieTimeout()
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
Returns
The expiration time of the session cookie (_pk_ses.*
).
Format: In seconds. Example: 3600
Type: number
Examples
To get the expiration time of the session cookie:
_paq.push([function () {
console.log(this.getSessionCookieTimeout());
}]);
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
getSessionCookieTimeout(): Promise<number>
A sample of the return value:
3600
Related methods
- enableCookies()
- disableCookies()
- deleteCookies()
- hasCookies()
- setCookieNamePrefix()
- setCookieDomain()
- getCookieDomain()
- setCookiePath()
- getCookiePath()
- setSecureCookie()
- setVisitorCookieTimeout()
- getConfigVisitorCookieTimeout()
- setReferralCookieTimeout()
- setSessionCookieTimeout()
- setVisitorIdCookie()
Updated 6 days ago