- Developer documentation
- Common codes
- Universal codes
- PHP functions
- Session management functions
- session_log_admin_user_session_time
session_log_admin_user_session_time
Declaration
session_log_admin_user_session_time(int$admins_id,int$type): void
Source: /includes/common/session.php
The function logs session time data for an admin user in the `admin_users_logs` table. The `$type` parameter defines the action: 1 = new login on the same day, 2 = logout, 0 = update of the ongoing session duration. A notable feature is that all data is stored in a single text field using a compact custom format with `|`, `/`, `#`, `*`, and `=` as delimiters, encoding dates, login times, elapsed and cumulative durations.
Parameters
$admins_id
$type
Return values
void






