Clanbite Forums

class Online_Tracker

Persists anonymous and logged-in sessions for forum online rosters.

class final

Full name
Kernowdev\ClanbiteForums\Forums\Online_Tracker

Constants

NameValueDescription
COOKIE_NAME'cp_forums_online_sid'
PEAK_OPTION'clanbite_forums_online_peak'

Methods

  • get_peak() Peak concurrent online users ever recorded.
  • get_snapshot() Filterable snapshot for templates and REST.
  • maybe_ping() Record this HTTP request in the online table when appropriate.
  • ping() Upsert session row, prune stale rows, optionally update peak.
  • register() Register front-end ping hook.

Defined in inc/Forums/Online_Tracker.php