Session Management Page
Component Detail
User Interface
medium complexity
frontend
2
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Server-rendered Next.js admin page that displays all active user sessions within the administrator's organization scope. Provides a filterable, sortable table of sessions with device metadata, login timestamps, last activity times, and action controls for revoking individual sessions or all sessions for a given user.
session-management-page
Responsibilities
- Render paginated session list with device type, IP, login time, and last activity columns
- Provide per-session and per-user bulk revocation controls with confirmation dialogs
- Display session status indicators (active, idle, recently revoked) with real-time refresh
- Support filtering by user name, device type, and activity recency
- Enforce scope visibility: Org Admin sees own org, Global Admin sees cross-org
Interfaces
renderSessionList(sessions: Session[], scope: OrgScope)
handleRevokeSession(sessionId: string)
handleRevokeAllUserSessions(userId: string)
handleFilterChange(filters: SessionFilters)
handleRefresh()
handlePageChange(page: number)
renderSessionDetailRow(session: Session)
showRevocationConfirmDialog(target: string)
Relationships
Related Data Entities (2)
Data entities managed by this component