LLMS_Sessions::is_session_idle( LLMS_Event $start )

Determine if a session is idle.


Description Description

A session is considered idle if it’s open and no new events have been recorded in the last 30 minutes.


Parameters Parameters

$start

(Required) Event record for the start of the session.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-llms-sessions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 When retrieving the last event, instantiate the events query passing no_found_rows arg as true, to improve performance.
3.36.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.