| 开发者 | oliforge |
|---|---|
| 更新时间 | 2026年11月21日 01:21 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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.
oliforge-session-control folder to the /wp-content/plugins/ directory.No. It only filters WordPress authentication cookie expiration and can log out inactive users.
No. The plugin does not connect to external services or transmit user data.
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.
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.
No. It only removes that row from the log. Use "Terminate Session" to actually end a live session.
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.
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.
oliforge_session_control_user_settings filter, the oliforge_session_control_session_started action and the oliforge_session_control_settings_after_core action. Without an add-on the plugin behaves exactly as before.allow_remember setting key lets an add-on switch Remember Me off for a user, so the normal session lifetime applies instead.$wpdb->prepare()'s %i identifier placeholder) and corrected several PHPCS suppression comments that had drifted out of sync with the sniffs they were meant to silence.