
內容簡介
Extendmate Session Manager 外掛讓使用者能夠直接從控制台或前端使用短碼管理活躍的使用者會話,增強帳號安全性,並可按裝置控制會話。
【主要功能】
• 會話數量顯示:在使用者列表中查看每位使用者的活躍會話數量
• 詳細會話檢視:點擊會話數量查看詳細會話資訊
• 單一會話控制:一鍵登出特定會話
• 批次登出:快速登出多位使用者
• 前端顯示:使用短碼顯示當前使用者的會話列表
• 多站點相容:支援 WordPress Multisite 網路
外掛標籤
開發者團隊
② 後台搜尋「Extendmate Session Manager – Monitor & Control User Sessions and Force Logout From Admin and Frontend」→ 直接安裝(推薦)
原文外掛簡介
Manage active sessions directly from admin dashboard or through frontend shortcodes. It improves account security by allowing session control per device.
Admin Features
Sessions Column: View the number of active sessions for each user directly in the user list.
Session Count Display: View session counts on user profile page.
Detailed Session View: Click on any user’s session count to view comprehensive session details in a popup.
Quick Access: Click the session count on user profile page to open the same detailed session management popup.
Session Information: See IP address, login date/time, session expiry date/time etc.
Individual Session Control: Destroy specific sessions with a single-click logout options.
Bulk Logout: Quickly log out multiple users at once using the bulk action feature in the user listing.
Bulk Session Management: Select multiple sessions of a user and log them out simultaneously.
Multisite Compatible: The plugin is compatible with WordPress Multisite networks.
Frontend Display With Shortcode
Display user sessions in a modern card-based layout on any page using the simple shortcode: [emsm_session_list].
This will show the list of active sessions for the currently logged-in user only.
This is intended to help users control their own account security.
Shortcode Parameters
Customize the frontend session display using the following attributes within the [emsm_session_list] shortcode:
fontawesome_enable
Enables or disables FontAwesome icons.
Accepted values: true or any other value (treated as false)
Default: true
fontawesome_version
Specifies the major version of FontAwesome to load.
Accepted values: Version string (e.g. 6.5.1)
Default: 7.0.0
fontawesome_cdn
Provides the full URL to a custom FontAwesome CSS file.
This overrides the default FontAwesome source used by the plugin.
Accepted values: Valid URL
Default: Plugin’s local asset path
limit
Defines the maximum number of session cards to display on the frontend.
Accepted values: Positive integer (e.g. 5, 20)
Default: 10
Important Note: If you provide fontawesome_cdn, also set fontawesome_version for proper loading.
Usage Example:
[emsm_session_list limit="5"]
Frontend Session Management
Current Session Highlight: The current active session always appears at the top of the list.
Organized Display: Sessions are ordered by login time (newest first).
Individual Logout: Log out specific devices with “Log Out This Device” buttons on each session card.
Bulk Logout Option: Use the “Log Out Everywhere Else” button to keep only your current session active.
Template Overrides
Developers can override the plugin’s frontend templates by placing custom template files in the active theme.
This allows for complete customization of the session list display without modifying the plugin’s core files.
How to Override Templates
In your active theme’s root directory, create a new folder called:
extendmate-session-manager
Copy the template files you wish to customize from the plugin’s directory:
wp-content/plugins/extendmate-session-manager/inc/template/frontend/
to your theme’s new directory:
wp-content/themes/your-theme/extendmate-session-manager/
Edit the copied template files in your theme directory. The plugin will automatically use these custom templates instead of the default ones.
Enabling Template Overrides
Template overrides are disabled by default. To enable this feature, use the following filter:
add_filter( 'emsm_enable_template_overrides', '__return_true' );
Usage
Admin Dashboard
Navigate to Users > All Users to see the new “Sessions” column.
Click on any session count to view detailed session information.
Use bulk actions to log out multiple users at once.
Visit individual user profiles to see session counts and manage sessions for specific users.
Frontend Display
Add the shortcode [emsm_session_list] to any page where you want to display session information.
Customize the display using the available shortcode attributes.
Users can manage their own sessions directly from the frontend.
Hooks
For detailed technical information on action and filter hooks for developers, please see the complete Hooks Reference.
