跳至主要內容
  • 登入
  • 註冊
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛目錄

  • 我的最愛
  • Beta 版測試
  • 開發者資訊

這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

下載

Remember Me Controls

由 Scott Reilly 開發
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

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:

  • Automatically check “Remember Me” : The ability to have the “Remember Me” checkbox automatically checked when the login form is loaded (it isn’t checked by default).
  • Customize the duration of the “Remember Me” : The ability to customize how long WordPress will remember a login session when “Remember Me” is checked, either forever or a customizable number of hours.
  • Disable “Remember Me” : The ability to completely disable the feature, preventing the checkbox from appearing and restricting all login sessions to one day.

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:

  • BuddyPress (in particular, its “Log in” widget)
  • Sidebar Login
  • Login Widget With Shortcode

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

螢幕擷圖

  • A screenshot of the plugin's admin settings page.
  • A screenshot of the login form with "Remember Me" checked by default
  • A screenshot of the login form with "Remember Me" removed

安裝方式

  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 download and unzip remember-me-controls.zip 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

常見問題集

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.

What plugins is this plugin compatible with?

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

  • BuddyPress (in particular, its “Log in” widget)
  • Sidebar Login
  • Login Widget With Shortcode

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.

使用者評論

Nice one

John 2019 年 11 月 27 日
great idea, thanks!

Excellent plugin

bruce-s 2018 年 12 月 12 日
Works really well and it's great to have found a solution to a tricky problem - thank you!

Still working great!

Marcelo Pedra 2018 年 5 月 22 日 2 則留言
2 years without updates and still working well. A little code review to confirm everything is still ok would be nice though 😉

Misses a few things…

crawlinson 2016 年 10 月 16 日 1 則留言
Does remove from wp-login.php but not from default wp login widget. Also does not compensate for extra white space and just leaves a gap. Nice quick fix if you are not using the widget and I guess the space can easily be fixed with custom css. It's just a pity it misses a few things, sorry.

Plugin broke HTTPS login

apunahasa 2016 年 9 月 3 日
I couldn't login to my website in an incognito window until I disabled this plugin
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Remember Me Controls〉的開發相關工作。

參與者
  • Scott Reilly

〈Remember Me Controls〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Remember Me Controls〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.9.1 (2021-02-13)

  • Fix: Add missing textdomain. Props @kittmedia.
  • Change: Enhance a FAQ answer to make clear that an existing login session will not be affected by an update to the remember me duration (must log in again)
  • Change: Note compatibility through WP 5.6+
  • Change: Update copyright date (2021)

1.9 (2020-07-20)

Highlights:

  • This minor release adds support for using commas when setting the remember me duration, adds HTML5 compliance when supported by the theme, improves settings help text and other documentation, updates its plugin framework, adds a TODO.md file, updates a few URLs to be HTTPS, expands unit testing, updates compatibility to be WP 4.9 through 5.4+, and other minor behind-the-scenes tweaks.

Details:

  • New: Add HTML5 compliance by omitting type attribute to ‘script’ and ‘style’ tags when the theme supports ‘html5’
  • New: Add help text to settings whose value change won’t take effect until subsequent logins regarding as much
  • New: Add TODO.md and move existing TODO list from top of main plugin file into it (and add items to it)
  • Change: Allow use of commas in user-submitted value for remember_me_duration setting
  • Change: Update JavaScript coding syntax
  • Change; Add help text to the top of the settings page
  • Change: Use a superscript for footnote asterisk and extract markup from translatable string
  • Change: Update plugin framework to 051
    • 051:
    • Allow setting integer input value to include commas
    • Use number_format_i18n() to format integer value within input field
    • Update link to coffee2code.com to be HTTPS
    • Update readme_url() to refer to plugin’s readme.txt on plugins.svn.wordpress.org
    • Remove defunct line of code
    • 050:
    • Allow a hash entry to literally have ‘0’ as a value without being entirely omitted when saved
    • Output donation markup using printf() rather than using string concatenation
    • Update copyright date (2020)
    • Note compatibility through WP 5.4+
    • Drop compatibility with version of WP older than 4.9
  • Change: Tweak text on help tab
  • Change: Add a few new FAQ entries and amend another
  • Change: Include another example scenario in which login cookies could be invalidated
  • Change: Tweak verbiage of various documentation
  • Change: Note compatibility through WP 5.4+
  • Change: Drop compatibility with versions of WP older than 4.9
  • Change: Update links to coffee2code.com to be HTTPS
  • Unit tests:
    • New: Add get_default_hooks() as a helper method for getting the default hooks
    • New: Add tests for add_css(), add_js(), help_tabs_content(), maybe_add_hr(), options_page_description()
    • New: Add test for setting name
    • New: Add test for hook registering
    • Change: Store plugin instance in test object to simplify referencing it
    • Change: Remove unnecessary unregistering of hooks in tearDown()
    • Change: Remove duplicative reset_options() call
    • Change: Use HTTPS for link to WP SVN repository in bin script for configuring unit tests
  • Change: Updated screenshot

1.8.1 (2020-01-01)

  • Change: Note compatibility through WP 5.3+
  • Change: Update copyright date (2020)
  • Change: Tweak changelog formatting for v1.8 release

Full changelog is available in CHANGELOG.md.

中繼資料

  • 最新版本: 1.9.1
  • 最後更新: 2 年前
  • 啟用安裝數: 5,000+
  • WordPress 版本需求: 4.9 或更新版本
  • 已測試相容的 WordPress 版本: 5.6.10
  • 語言:

    English (US) 及 German.

    將這個外掛本地化為你的母語版本

  • 標籤:
    cookieloginrememberremember mesession
  • 進階檢視

評分

檢視全部
  • 5 星 5
  • 4 星 1
  • 3 星 0
  • 2 星 0
  • 1 星 1
登入以提交評論

參與者

  • Scott Reilly

技術支援

最近 2 個月解決的問題:

總計 1 個問題,已解決 0 個

查看技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機託管
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛目錄
  • 佈景主題目錄
  • 區塊版面配置目錄
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Taiwan 正體中文

  • 造訪我們的 Facebook 粉絲專頁
  • 造訪我們的 Twitter 帳號
  • Visit our Instagram account
  • Visit our LinkedIn account
程式碼,如詩