Description
OliForge Session Control lets administrators configure:
- Normal login session lifetime in hours.
- Remember Me session lifetime in days.
- Optional automatic logout after inactivity.
- Whether the settings apply to administrators, frontend users, or both.
It also adds an Active Sessions screen with:
- A running log of every login, kept in its own database table independent of WordPress’s own session-token storage.
- Search by user, filter by role, sortable Logged In / Last Active columns, and pagination (20 per page).
- Terminate Session to sign a still-active device out immediately, available as a row action or bulk action.
- Delete from List to remove a row from the log only — it never signs anyone out.
- Sync current sessions, a one-click backfill for sessions that were already open before this feature was enabled, using WordPress’s own stored login time, IP address and user agent.
On WordPress Multisite networks, network administrators also get:
- A Network Sessions screen (Network Admin > Settings) that aggregates every site’s session log into one searchable, sortable, paginated table.
- Site, User, Device, IP, Status, Logged In and Last Active columns, with Terminate Session and Delete from List available per row and in bulk across sites.
- A warning notice if a network is too large to fully scan in one pass, instead of silently showing incomplete results.
- Every site keeps its own independent session log and settings; a single-site installation is completely unaffected by this feature and behaves exactly as before.
The plugin uses the WordPress Settings API and native authentication hooks. It does not send data to external services.
Settings are available under Settings > OliForge Session Control, and the session log under its Active Sessions tab.
Privacy
- The session log stores, for every login, the user ID, the visitor’s IP address (as sent by the server, not hashed), the browser user agent and two timestamps. It is shown only to administrators.
- Log rows are deleted automatically after the retention period you set under Settings > OliForge Session Control (90 days by default), and Delete from List removes a row immediately.
- Uninstalling the plugin drops the log table and all settings.
- Nothing is sent to an external service.
- The plugin adds a suggested paragraph for your privacy policy under Settings > Privacy > Policy Guide.
Extending the plugin
Add-ons can adjust the settings per user with the oliforge_session_control_user_settings filter (keys: normal_hours, remember_days, allow_remember, enable_idle_logout, idle_minutes), react to a new login with the oliforge_session_control_session_started action, and render their own panel below the settings form with the oliforge_session_control_settings_after_core action. The “apply to administrators / frontend users” switches still decide whether the plugin applies to a user at all.
Screenshots



Installation
- Upload the
oliforge-session-controlfolder to the/wp-content/plugins/directory. - Activate the plugin through the Plugins screen in WordPress.
- Open Settings > OliForge Session Control.
- Configure the session and idle timeout values.
- Switch to the Active Sessions tab to review and manage logged-in sessions.
- On a Multisite network, network administrators can also open Network Admin > Settings > OliForge Network Sessions for an aggregated, network-wide view.
FAQ
-
Does the plugin replace WordPress authentication?
-
No. It only filters WordPress authentication cookie expiration and can log out inactive users.
-
Does the plugin make external requests?
-
No. The plugin does not connect to external services or transmit user data.
-
What data does the plugin store?
-
The plugin stores one settings option and a session-log database table. Each log row holds the user, a SHA-256 verifier of the session token (never the token itself), the IP address, the user agent, the login time and the last-seen time. The last-seen time is also what idle logout uses, so no extra user meta is written. See the Privacy section below.
-
Will sessions that existed before I updated the plugin show up in the log?
-
Not automatically — the log only records logins from the moment this feature is active. Use “Sync current sessions” on the Active Sessions screen to backfill any sessions that were already open, using the login time, IP and user agent WordPress already stored for them.
-
Does “Delete from List” sign the user out?
-
No. It only removes that row from the log. Use “Terminate Session” to actually end a live session.
-
Does this work on WordPress Multisite?
-
Yes. Each site in the network keeps its own independent settings and session log, exactly as on a single-site install. Network administrators additionally get a Network Sessions screen under Network Admin > Settings that aggregates every site’s log into one table. On a very large network, results may be capped per pass; a notice on the Network Sessions screen says so rather than showing an incomplete picture silently.
-
Are settings removed when the plugin is uninstalled?
-
Yes. The plugin removes its settings, legacy activity metadata, scheduled cleanup event, and session-log database table. On multisite, uninstall cleanup runs across all sites in the network.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“OliForge Session Control” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “OliForge Session Control” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
2.3.2
- The Active Sessions table’s User column is wider, so e-mail addresses are no longer broken in the middle of a word.
- Bulk actions on the Active Sessions and Network Sessions screens now sanitize the submitted action values before comparing them.
2.3.1
- Prepared the plugin for the WordPress.org directory: added the Author URI header and replaced the 96 KB admin logo with a 10 KB, 128 px version (moved to assets/images/).
- Added a suggested paragraph for the site’s privacy policy (Settings > Privacy > Policy Guide) and a Privacy section to the readme that lists exactly what the session log stores.
- Added one “Get a Pro version” prompt under the settings form. It is hidden when OliForge Session Control Pro is active.
- Corrected the readme: the last-seen time used for idle logout is stored in the session log, not in user meta.
2.3.0
- Added extension points for add-ons such as OliForge Session Control Pro (per-role rules): the
oliforge_session_control_user_settingsfilter, theoliforge_session_control_session_startedaction and theoliforge_session_control_settings_after_coreaction. Without an add-on the plugin behaves exactly as before. - A new
allow_remembersetting key lets an add-on switch Remember Me off for a user, so the normal session lifetime applies instead.
2.2.2
- Added the Plugin URI header linking to the plugin page on oliforge.io.
2.2.1
- Removed “Active Sessions” as a separate item under the Settings menu; it remains reachable as a tab on the OliForge Session Control settings page.
- Hardened direct database queries (session log table name and dynamic IN()/ORDER BY clauses now use
$wpdb->prepare()‘s%iidentifier placeholder) and corrected several PHPCS suppression comments that had drifted out of sync with the sniffs they were meant to silence.
2.2.0
- Store only SHA-256 session verifiers in the plugin log; legacy raw tokens are migrated and removed.
- Fix Active/Ended detection, session termination and current-session sync.
- Track idle activity per session instead of per user.
- Add multisite table lifecycle for network activation and new sites.
- Add configurable session-log retention with daily cleanup.
- Split session storage, repository, manager, idle-timeout, schema and admin responsibilities.
2.1.0
- Added a Network Sessions screen (Network Admin > Settings, multisite only) that aggregates every site’s session log into one searchable, role-filterable, sortable, paginated table.
- Added a Site column and cross-site Terminate Session / Delete from List row and bulk actions, switching into each row’s own site before acting on it.
- Added a “Network Sessions” tab, shown only to network administrators on a multisite install.
- Added a truncation warning on the Network Sessions screen if a network has more sites, or a site has more matching sessions, than a single pass can merge and sort.
- All multisite code is gated behind is_multisite() and never runs on a single-site install, which continues to behave exactly as before.
2.0.0
- Added a new Active Sessions screen backed by its own database table — a persistent login history independent of WordPress’s own session-token storage.
- Added search by user, role filtering, sortable Logged In / Last Active columns, and pagination (20 sessions per page).
- Added Terminate Session (ends a live session) and Delete from List (removes only the log entry, never signs anyone out) as row and bulk actions.
- Added “Sync current sessions” to backfill sessions that were already active before this feature was installed, using WordPress’s own stored login time, IP address and user agent.
- Added a Settings / Active Sessions tab bar shared by both admin screens.
- Converted the on/off settings to toggle switches and redesigned both admin screens with the OliForge brand system: header, cards, styled selects, buttons and self-dismissing notices.
- Extended uninstall cleanup to remove the new session-log database table.
1.2.0
- Declared compatibility with WordPress 7.0.
- Updated plugin headers and WordPress.org readme metadata.
- Hardened settings sanitization against malformed input.
- Added capability enforcement on the settings screen.
- Avoided idle checks during WordPress cron requests.
- Improved activity timestamp write throttling.
- Added uninstall cleanup for plugin settings and activity metadata.
- Updated code formatting and inline documentation for WordPress coding standards.
1.1.0
- Rebranded for OliForge.
- Hardened settings validation and redirect handling.
- Added safe upper limits for timeout values.
- Reduced unnecessary user-meta writes.
- Fixed logout activity cleanup.
1.0.0
- Initial release.
