| 开发者 | whitedd |
|---|---|
| 更新时间 | 2026年11月2日 17:40 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
dd_switch_users capability.
The plugin uses opaque per-session switch tokens, server-side transient state, nonce-protected switch and return actions, strict target validation, safe redirects, and cleanup on logout. It blocks nested impersonation and protects multisite super administrator accounts.
The plugin does not send data to external services and does not include telemetry, advertising, or remote code.
When switching accounts, the plugin preserves the administrator WordPress session in encrypted server-side state and creates a temporary target-user session. On return, it validates the administrator session and destroys only the temporary target session. AIOWPS logged-in-user tracking is temporarily suspended only while setting switch-related authentication cookies, so account switching does not appear as a new login. Other authentication listeners remain active.
dd-login-as-user folder to /wp-content/plugins/.dd_switch_users capability on activation.Only users with the dd_switch_users capability can start a switch session. The plugin adds that capability to the administrator role on activation.
On single-site installs, administrator-to-administrator switching is blocked by default. Developers can opt in with the dd_login_as_user_allow_admin_target filter.
The default timeout is 60 minutes. It can be adjusted with the DD_LOGIN_AS_USER_TIMEOUT constant or the dd_login_as_user_timeout filter.
set_auth_cookie tracking callback while setting switch cookies; restored it immediately afterward.