
內容簡介
重要提醒:支援已經轉移到ZATZLabs網站,將不再提供在WordPress.orgforums的支援。如果您需要開發者的即時回覆,請提交工單。
允許管理員和/或用戶控制在標準的WordPress登錄表單上的 "記住我" 复选框中的選中狀態。
如果 "記住我" 复选框未選中,用戶每次關閉瀏覽器後都需要重新登錄。若選中,他們將不必在兩週內再次登錄。
以下設置可用:
管理員可以控制「記住我」是否為所有登錄、管理面板登錄或受jonradio Private Site或相應插件控制的公共網頁登錄默認值
管理員可以控制用戶的「記住我」選擇是否被記住,如記憶,則為多長時間
禁用插件對「記住我」複選框的控制
還有其他使「記住我」成為默認的插件,但我寫這個插件是因為我希望找到一個不需要JavaScript的解決方案,而這是我能找到的每一個插件所使用的解決方案。這個插件使用了WordPress的一個記錄標準 "hook"和一個只針對此目的使用的Post變量,即純PHP無JavaScript。
決定此插件是否適用於您:
WordPress總是將“記住我”複選框留空,即使您上一次登錄時已選中;
不選中「記住我」,則當瀏覽器關閉或經過兩天時,系統自動退出;
如果不選中「記住我」,有些瀏覽器會在打開新瀏覽器窗口時強制要求登錄;
勾選「記住我」,系統會自動在兩週後退出;
勾選「記住我」,即使關閉瀏覽器、用戶計算機重新啟動或Web網站掛起,用戶仍然保持登錄狀態;
只有註冊用戶才能查看的Web網站(例如 - jonradio Private Site plugin)更有可能需要在每個用戶登錄時預選「記住我」,因為Web網站查看通常比WordPress管理員更頻繁;
對於公共或共享計算機,WordPress留空「記住我」複選框的行為略微提高了安全性,但容易被使用者在登錄時選中「記住我」的方式繞過,仍會讓後續使用者保持登入狀態。
採用通告此插件最近由David Gewirtz接手,將繼續提供支援和更新。如有需要,請隨時參觀David的實驗室筆記以獲取更多詳細資訊並註冊電子郵件新聞更新。
特別感謝Jon ‘jonradio’ Pearkins創建此插件並使接手成為可能。
外掛標籤
開發者團隊
② 後台搜尋「InstallActivateGo Remember Me」→ 直接安裝(推薦)
原文外掛簡介
Allows the Administrator and/or the User to control the placement of a check mark in the Remember Me checkbox on the standard WordPress login form.
Without a check mark in the Remember Me checkbox, your users will have to login every time they close their browser. With Remember Me selected, they won’t have to login again for two weeks.
The first of a new series of Install/Activate/Go plugins that require no setup or settings changes to work for 99% of Use Cases.
Settings allow:
The Administrator to control whether Remember Me is the default for all logins, logins from Admin panels or logins from public web pages controlled by My Private Site or equivalent plugin
The Administrator to control if the User’s Remember Me choice is remembered and, if so, for how long
Disabling of the plugin’s control of the Remember Me checkbox
Defaults:
Remember Me is the default for all logins
The User’s Remember Me choice will be remembered for one year
There are other plugins that make Remember Me the default, but I wrote this plugin in October 2013 because I wanted a solution that did not require JavaScript, which was the solution used by every other plugin that I could find. This plugin uses a documented standard WordPress Action (“hook”) and a Post variable used by WordPress just for this purpose, i.e. – straight PHP with no JavaScript.
Deciding whether this plugin is for you:
WordPress always leaves the Remember Me checkbox empty, even if you selected it the last time you logged on;
Without Remember Me checked, logoff occurs automatically when the browser is closed or two days have passed;
Without Remember Me checked, some browsers will force a login when opening a new browser window;
With Remember Me checked, logoff occurs automatically in two weeks;
With Remember Me checked, the user remains logged in even if the browser is closed, the user’s computer is rebooted or the web site hosting server is rebooted;
Web sites that can only be viewed by registered users (e.g. – My Private Site plugin) are more likely to want Remember Me pre-selected for each user at login, as web site viewing will be more frequently repeated than WordPress Administration;
For public or shared computers, the WordPress behaviour of leaving the Remember Me checkbox empty is a slight Security improvement, but is easily defeated by a user selecting Remember Me during login, which still leaves subsequent users logged on.
