Linux 软件免费装
Banner图

Remember Me Controls

开发者 coffee2code
更新时间 2024年9月5日 03:20
捐献地址: 去捐款
PHP版本: 5.5 及以上
WordPress版本: 6.6
版权: GPLv2 or later
版权网址: 版权信息

标签

cookie login remember session remember me

下载

2.1 2.0 1.0 1.0.1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.8.1 1.9 1.9.1 2.0.1

详情介绍:

Take control of the "Remember Me" login feature for WordPress by having it enabled by default, customize how long users are remembered, or disable this built-in feature by default. For those unfamiliar, "Remember Me" is a checkbox present when logging into WordPress. If checked, WordPress will remember the login session for 14 days. If unchecked, the login session will be remembered for only 2 days. Once a login session expires, WordPress will require you to log in again if you wish to continue using the admin section of the site. This plugin provides three primary controls over the behavior of the "Remember Me" feature: NOTE: WordPress remembers who you are based on cookies stored in your web browser. If you use a different web browser, clear your cookies, use a browser on a different machine, or uninstall/reinstall (and possibly even just restarting) your browser then you will have to log in again since WordPress will not be able to locate the cookies needed to identify you. Compatibility Other than the plugins listed below, compatibility has not been tested or attempted for any other third-party plugins that provide their own login widgets or login handling. Special handling has been added to provide compatibility with the following plugins: Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

安装:

  1. Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting
  2. Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically /wp-content/plugins/).
  3. Activate the plugin through the 'Plugins' admin menu in WordPress
  4. Go to "Settings" -> "Remember Me" and configure the settings

屏幕截图:

  • A screenshot of the login form with "Remember Me" checked by default
  • A screenshot of the login form with "Remember Me" removed

升级注意事项:

2.1 Minor update: updated plugin framework, prevented translations from containing unintended markup, noted compatibility through WP 6.6+, dropped compatibility with versions of WP older than 5.5, removed unit tests from release packaging, and updated copyright date (2024) 2.0.1 Minor bugfix: fixed the plugin setting's page info banner from reporting the wrong remembered session duration (of "2 days") when the default WordPress remembered session duration applied (of "14 days"). 2.0 Recommended update: improved labeling, help text, and functionality of settings page; updated plugin framework to version 065; noted compatibility through WP 6.2+; updated copyright date (2023). 1.9.1 Trivial update: added missing translation textdomain, noted compatibility through WP 5.6+, and updated copyright date (2021) 1.9 Minor update: allowed commas in numerical input, improved documentation, added HTML5 compliance when supported by the theme, updated plugin framework, added TODO.md file, updated a few URLs to be HTTPS, expanded unit testing, updated compatibility to be WP 4.9 through 5.4+, and minor behind-the-scenes tweaks. 1.8.1 Trivial update: noted compatibility through WP 5.3+ and updated copyright date (2020) 1.8 Minor update: tweaked plugin initialization, updated plugin framework to version 049, noted compatibility through WP 5.2+, created CHANGELOG.md to store historical changelog outside of readme.txt, and updated copyright date (2019) 1.7 Recommended update: added support for BuddyPress Login widget, Sidebar Login plugin, and Login Widget With Shortcode plugin; updated plugin framework to version 047; compatibility is now with WP 4.7-4.9+; updated copyright date (2018). 1.6 Minor update: improved support for localization; verified compatibility through WP 4.4; removed compatibility with WP earlier than 4.1; updated copyright date (2016) 1.5 Minor update: add unit tests; updated plugin framework to 039; noted compatibility through WP 4.1+; updated copyright date (2015); added plugin icon 1.4 Recommended update: updated plugin framework; compatibility now WP 3.6-3.8+ 1.3 Minor update. Highlights: updated plugin framework; noted compatibility through WP 3.5+; and more. 1.2 Recommended update. Highlights: added new setting to remember logins forever; misc improvements and minor bug fixes; updated plugin framework; compatibility is now for WP 3.1 - 3.3+. 1.1 Recommended upgrade! Fixed bug relating to value conversion from hours to seconds; fix for proper activation; noted compatibility through WP 3.2; dropped compatibility with versions of WP 3.0; deprecated use of global updated plugin framework; and more. 1.0.1 Recommended bugfix release. 1.0 Initial public release!

常见问题:

How long does WordPress usually keep me logged in?

By default, if you log in without "Remember Me" checked, WordPress keeps you logged in for up to 2 days. If you check "Remember Me" (without this plugin active), WordPress keeps you logged in for up to 14 days.

Why am I being asked to log in again even though I've configured the plugin to remember me forever (or an otherwise long enough duration that hasn't been met yet)?

WordPress remembers who you are based on cookies stored in your web browser. If you use a different web browser, clear your cookies, use a browser on a different machine, the site owner invalidates all existing login sessions, or you uninstall/reinstall (and possibly even just restart) your browser then you will have to log in again since WordPress will not be able to locate the cookies needed to identify you. Also, if you changed the remember me duration but hadn't logged out after having done so, that particular login session would still be affected by the default (or previously configured) duration.

How can I set the session duration to less than an hour?

You can't (and probably shouldn't). With a session length of less than an hour you risk timing out users too quickly.

Do changes to the remember me duration take effect for all current login sessions?

No. The duration for which a login cookie is valid is defined within the cookie when it gets created (which is when you log in). Changing the setting for the remember me duration will only affect cookies created thereafter. You can log out and then log back in if you want the newly configured remember me duration to apply to your session. More precisely, the changes take effect for all new logins, which can happen after a preexisting login session expires, the user logs out, or the user's cookies are cleared in their browser (manually or automatically).

Why are some of the plugin settings disabled?

Certain settings being enabled may disable other settings that get superceded by the enabled setting. For instance, if the "Never remember?" setting is enabled, then all other settings are disabled since they wouldn't apply. The onscreen help text for each setting indicates what other settings are relatedly affected.

How can I make the plugin configuration changes I've made take effect immediately?

As explained in the previous FAQ entry, changes to the plugin's settings only take effect the next time a user logs in. Existing login sessions will abide by the remember me duration configured at the time they logged into their current session. The login cookies for a user session can become invalidated by the visitor by logging out or clearing their cookies. Here are some options to force all active login sessions to abide by the current login session duration:

What plugins are this plugin compatible with?

Special handling has been added to provide compatibility with the following plugins:

Is this plugin GDPR-compliant?

Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors.

Does this plugin include unit tests?

Yes. The tests are not packaged in the release .zip file or included in plugins.svn.wordpress.org, but can be found in the plugin's GitHub repository.

更新日志:

2.1 (2024-09-01) Highlights: This minor release primarily updates the plugin framework to the most current version (for security hardening and miscellaneous improvements), prevents translations from containing unintended markup, notes compatibility through WP 6.6+, drops compatibility with versions of WP older than 5.5, and removes unit tests from release packaging. Details: 2.0.1 (2023-06-19) Highlights: This is minor bugfix release fixes the plugin settings page's info banner that reports the current remembered session duration. When the WordPress default remembered session duration (of "14 days") is applicable, that value is now shown instead of stating an incorrect value ("2 days"). Actual session durations and plugin functionality were not affected. Details: 2.0 (2023-06-14) Highlights: This is a recommended and notable release that improves the labeling, help text, data display, and functionality of the plugin's settings page; restructures the unit tests; verifies compatibility through WordPress 6.2+; and other minor behind-the-scenes tweaks. Details: Full changelog is available in CHANGELOG.md.