Active Sessions Documentation And Ui Improvements 2026 01 14
Active Sessions Documentation and UI Improvements
Date: January 14, 2026
Issue Type: Documentation Gap & User Experience Enhancement
Priority: Medium
Executive Summary
A user inquiry revealed significant gaps in our documentation regarding active session management. While the feature existed and worked properly, users lacked comprehensive information about:
- Where to find active sessions
- What information is displayed and what each column means
- How long sessions are tracked
- What actions can be taken
- Common use cases and best practices
Result: Enhanced documentation and improved UI clarity through tooltips and updated help text.
User Question That Triggered This Update
"How do active sessions work, can I see who's logged in and what actions can I take?"
This question highlighted that while the feature was functional, it wasn't well-documented, leading to user confusion.
Research and Analysis
Codebase Analysis
Analysis of the appifany2/app/Http/Controllers/Client/AppController.php revealed:
- Function:
getActiveSessions()(line 7490) - Retrieves active sessions from the last 13 hours - Function:
expireActiveSession()(line 7560) - Allows forced logout of users - Data Tracked: Session Start, Last Active, Email, Name, Status
- Plan Requirement: Requires
allow_user_active_sessionspermission
UI Components Found
| File Path | Purpose | Status Column |
|---|---|---|
| appifany2/resources/assets/client/tpl/app-active-sessions-list.html | Legacy active sessions view | No |
| appifany2/resources/assets/client/tpl/new/settings/user-active-sessions.html | Newer active sessions view | No |
| appifany2/resources/assets/client/v2/tpl/settings/user/user-active-sessions.html | Latest active sessions view with status | Yes |
Existing Documentation Review
Found multiple sparse references to active sessions:
- Article 243: Brief announcement with single image
- Article 1700: Mentioned as part of enhanced logging features
- Article 49 (user-security.html): Two-sentence description with image
- Article 1232 (user-settings.html): Similar brief description
- Article 1365 (user-logs.html): Listed active sessions but no explanation
Gap Identified: No comprehensive documentation explaining the feature in detail.
Changes Made
1. Documentation Updates
Updated Article: User Logs (1365-user-logs.html)
File: docs/exported-articles/Logging and Audits/(No Section)/1365-user-logs.html
Article URL: https://docs.tadabase.io/categories/logging-and-audits/article/user-logs
New Sections Added:
- Viewing Active Sessions - Overview of the feature
- Accessing Active Sessions - Where to find the feature and plan requirements
- What Information is Displayed - Detailed explanation of each column:
- Session Start - When user logged in
- Last Active - Most recent activity time
- Email - User's email address
- Name - User's name
- Status - Session status (Active, Terminated, Expired)
- Action - Available actions (Force Logout)
- Session Tracking Duration - Explained 13-hour tracking window
- Actions You Can Take - Detailed explanation of force logout functionality with use cases:
- Enforcing immediate password changes
- Responding to compromised accounts
- Performing maintenance
- Troubleshooting user authentication issues
- Common Use Cases - Practical scenarios:
- Security monitoring
- Session management
- Troubleshooting
- Compliance tracking
- Capacity planning
- Active Sessions vs Login Logs - Clear distinction between real-time and historical data
Article 1365 (User Logs) was chosen because it already covered related topics (Login Logs, Failed Logins, Blocked Users) and listed Active Sessions in its introduction. This made it the natural home for comprehensive active sessions documentation, providing users with all user-related logging information in one place.
2. UI/UX Improvements
Enhanced User Interface - Three Template Files Updated
| File | Changes Made |
|---|---|
| app-active-sessions-list.html |
|
| tpl/new/settings/user-active-sessions.html |
|
| v2/tpl/settings/user/user-active-sessions.html |
|
Specific UI Enhancements
- Tooltips Added:
<th title="When the user initially logged in"> Session Start </th> <th title="The most recent time the user was active in your app"> Last Active </th> <th title="The user's email address"> Email </th> <th title="The user's name"> Name </th> <th title="Current session status (Active, Terminated, Expired)"> Status </th>
- Help Text Updated:
Before: "See who is currently logged in and click the Logout button to force users to logout."
After: "See who is currently logged in (within the last 13 hours) and click the Logout button to force users to logout."
- Documentation Links Updated:
Old URL: https://docs.tadabase.io/categories/manual/article/user-security#bkmrk-session-tracking
New URL: https://docs.tadabase.io/categories/logging-and-audits/article/user-logs#bkmrk-viewing-active-sessions
Users hovering over column headers will now immediately understand what each column represents without needing to consult documentation. The 13-hour time frame is now visible directly in the interface, setting proper expectations.
Technical Details from Code Analysis
Backend Logic (AppController.php)
Session Retrieval Query:
This confirms sessions are only shown if they were created within the last 13 hours and haven't been explicitly expired.
Session Termination
When an admin forces a logout, the session status is changed to "Terminated," which logs the user out.
Impact and Benefits
For End Users
- Improved Discoverability: Users can now find comprehensive information about active sessions
- Better Understanding: Clear explanations of what each piece of information means
- Practical Guidance: Use cases help users understand when and why to use this feature
- Enhanced UX: Tooltips provide instant clarity without leaving the interface
For Support Team
- Reduced Support Tickets: Users can self-serve instead of asking basic questions
- Reference Material: Support can direct users to specific documentation sections
- Clarity on Limitations: The 13-hour window is now clearly documented
For Product Team
- Feature Awareness: Better documentation may increase feature adoption
- User Expectations: Clear documentation prevents misunderstandings about capabilities
Files Modified Summary
Documentation Files (1 file)
- docs/exported-articles/Logging and Audits/(No Section)/1365-user-logs.html - Added comprehensive Active Sessions section
Code Files (3 files)
- appifany2/resources/assets/client/tpl/app-active-sessions-list.html - Added tooltips and updated help text
- appifany2/resources/assets/client/tpl/new/settings/user-active-sessions.html - Added tooltips and updated help text
- appifany2/resources/assets/client/v2/tpl/settings/user/user-active-sessions.html - Added tooltips (including Status column) and updated help text
Testing Recommendations
- Documentation Review: Verify the updated User Logs article displays correctly and all links work
- UI Testing:
- Verify tooltips appear on hover for all column headers
- Confirm help text displays with "13 hours" mention
- Test "Learn More" links navigate to correct documentation section
- Cross-browser Testing: Ensure tooltips work in Chrome, Firefox, Safari, Edge
- Responsive Testing: Check that tooltips work on tablets/mobile devices
Future Considerations
- Export Functionality: Consider adding ability to export active session data
- Filtering: Add ability to filter by user, email, or session duration
- Notifications: Consider alerting admins when unusual session patterns are detected
- Customizable Duration: Allow admins to configure the 13-hour window
- Session Details: Show IP address, device, browser information in the active sessions view
Conclusion
This update successfully addresses the user's question by providing comprehensive documentation and improving the user interface clarity. The combination of detailed written documentation and in-app tooltips ensures users can understand and effectively use the active sessions feature.
Key Achievement: Transformed a functional but poorly documented feature into a well-explained tool that users can confidently use for security monitoring, troubleshooting, and compliance tracking.
Document prepared by: Claude Code
Date: January 14, 2026
Related User Question: "How do active sessions work, can I see who's logged in and what actions can I take?"
We'd love to hear your feedback.