setSessionTimeout

The setSessionTimeout() method sets the the session timeout. The default value is 30 minutes.

Syntax

await PiwikProSdk.setSessionTimeout(seconds);

Parameters

seconds (number, required)

The time (in seconds) after which the session expires.

Examples

To set the expiration time to 60 minutes (60x60 seconds):

await PiwikProSdk.setSessionTimeout(30 * 60);