LLMS_Sessions
LLMS_Sessions class.
Description Description
Source Source
File: includes/class-llms-sessions.php
Changelog Changelog
Version | Description |
---|---|
3.37.2 | Add filter llms_sessions_end_idle_cron_recurrence to allow customization of the recurrence of the idle session cleanup cronjob. |
3.36.0 | Introduced. |
Methods Methods
- __construct — Private Constructor.
- add_cron_schedule — Add cron schedule for session end interval checks.
- end — End a session.
- end_current — Ends the currently active session for the logged in user.
- end_idle_sessions — End the 50 oldest idle sessions.
- get_current — Retrieve the current session start event record for a given user.
- get_last_session — Retrieve the last session object for the current user.
- get_new_id — Retrieve a new session ID.
- get_open_sessions — Retrieve open sessions.
- get_session_end — Retrieve session end record for by session id.
- get_session_events — Retrieve an array of events which occurred during a session.
- instance — Get Main Singleton Instance.
- is_session_idle — Determine if a session is idle.
- is_session_open — Determines if the given session is open (has not ended)
- start — Start a new session for the current user.