expusersessioninfo
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
What a signed-in session adds to its row of expuser_session (table expuser_session_info, one row per session, keyed by the session's row id): the host the sign-in was made on, the country and place a local GeoIP database names for its address (expUserGeoIP; empty without one) and the second step of ...
Description
What a signed-in session adds to its row of expuser_session (table expuser_session_info, one row per session, keyed by the session's row id): the host the sign-in was made on, the country and place a local GeoIP database names for its address (expUserGeoIP; empty without one) and the second step of the sign-in (auth_detail: totp, email, recovery, passkey; empty for a sign-in without one).
A table of its own, so an installation that has expuser_session from an earlier 6.0.15 build keeps tracking its sessions until the update creates this one (update/common/scripts/6.0/createusersessiontable.php): without it the sessions are listed without these details and nothing fails. Removed with its session (expUserSessionTracker:: cleanup(), removeForUser()).
@since 6.0.15
Persistent
Yes. Table expuser_session_info.
Attributes
| Attribute | Type | Static* |
|---|---|---|
| session_id | integer | Yes. |
| user_id | integer | Yes. |
| host | string | Yes. |
| country | string | Yes. |
| location | string | Yes. |
| auth_detail | string | Yes. |
* Yes: a field of the table (a stored value); No: a function attribute, computed when it is asked for.
Source
kernel/classes/user/expusersessioninfo.php, expUserSessionInfo::definition()
Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this object.
Contributors
- Graham Brookins Updated
Comments
Add a comment