Skip to main content
Source snapshot: 13 October 2026. These pages describe the current implementation, including unfinished controls. See coverage and review notes.

User sessions

Host: control.<ROOT_DOMAIN> · Route: /users/[userId]/sessions

Purpose and access

Inspect and revoke sessions belonging to a selected account.You need an account session and platform access. Platform privileges are separate from tenant roles; privileged writes remain subject to endpoint role checks.

Screen layout

The screen identifies the target user and shows session records with their available metadata and Revoke actions.

Fields and displayed information

Displayed table columns: Started, IP address, Device, Expires, Status.

Actions

Linked navigation

Interaction sequence

Open the user’s sessions → inspect a record → Revoke → call the session-revocation endpoint → refresh.

States and rules

No sessions on record is an explicit empty state. Revoking a session is distinct from deleting the account or removing tenant membership.The rendered action controls bind loading indicators to pending state. Failed API saves keep their documented error/notification path; a loading indicator alone does not establish persistence.

Implementation references

Paths below are relative to the application repository. This is source-reviewed behavior, not a recorded browser test.
  • apps/web/src/app/sites/control/(app)/users/[userId]/sessions/page.tsx
  • apps/web/src/features/platform/user-sessions-table.tsx
Data and access helpers: apps/web/src/lib/session.ts, apps/web/src/lib/server-api.ts, apps/web/src/lib/platform.ts, apps/web/src/lib/api-client.ts

API behavior references

  • apps/api/src/platform/platform-tenant-access.controller.ts
  • apps/api/src/platform/platform.controller.ts
  • apps/api/src/billing/plans.controller.ts
  • apps/api/src/billing/tenant-billing.controller.ts
  • apps/api/src/features/features.controller.ts
  • apps/api/src/features/tenant-features.controller.ts
  • apps/api/src/forms/forms.controller.ts
  • apps/api/src/analytics/analytics.controller.ts
  • apps/api/src/analytics/tenant-analytics.controller.ts