setSessionCookieTimeout
The setSessionCookieTimeout() method sets the expiration time for the session cookie (_pk_ses.*
). The default value is 30 minutes.
Syntax
setSessionCookieTimeout(seconds)
setSessionCookieTimeout(seconds): void
setSessionCookieTimeout(seconds): void
setSessionCookieTimeout(seconds): void
setSessionCookieTimeout(seconds): void
setSessionCookieTimeout(seconds): void
setSessionCookieTimeout(seconds): void
Parameters
seconds (number, required)
The time (in seconds) after which the session cookie (_pk_ses.*
) is removed.
Examples
To set the expiration time to 60 minutes (3600 seconds):
_paq.push(["setSessionCookieTimeout", 3600]);
setSessionCookieTimeout(3600): void
setSessionCookieTimeout(3600): void
setSessionCookieTimeout(3600): void
setSessionCookieTimeout(3600): void
setSessionCookieTimeout(3600): void
setSessionCookieTimeout(3600): void
Related methods
Updated 6 days ago