sessionTimeout

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

Syntax

[PiwikTracker sharedInstance].sessionTimeout = seconds;

Parameters

seconds (number, required)

The time (in seconds) after which the session expires. Default value: 30*60 seconds (30 minutes)

Examples

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

[getTracker() setSessionTimeout:(30 * 60)];
tracker.setSessionTimeout(30 * 60)