跳至内容
  • 登录
  • 注册
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 消息
  • 支持
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress

插件

  • 我的收藏
  • Beta测试
  • 开发者

该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

下载

Remember Me

作者David Gewirtz
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

IMPORTANT: Support has moved to the ZATZLabs site and is no longer provided on the WordPress.org forums. If you need a timely reply from the developer, please open a ticket.

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.

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 jonradio 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

There are other plugins that make Remember Me the default, but I wrote this plugin 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. – jonradio 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.

Adoption Notice
This plugin was recently adopted by David Gewirtz and ongoing support and updates will continue. Feel free to visit David’s Lab Notes for additional details and to sign up for emailed news updates.

Special thanks to Jon ‘jonradio’ Pearkins for creating the plugin and making adoption possible.

安装

IMPORTANT: Support has moved to the ZATZLabs site and is no longer provided on the WordPress.org forums. If you need a timely reply from the developer, please open a ticket.

This section describes how to install the jonradio Remember Me plugin and get it working.

  1. Use Add Plugin within the WordPress Admin panel to download and install this jonradio Remember Me plugin from the WordPress.org plugin repository (preferred method). Or download and unzip this plugin, then upload the /jonradio-remember-me/ directory to your WordPress web site’s /wp-content/plugins/ directory.
  2. Activate the jonradio Remember Me plugin through the Installed Plugins Admin panel in WordPress. If you have a WordPress Network (“Multisite”), you can either Network Activate this plugin through the Installed Plugins Network Admin panel, or Activate it individually on the sites where you wish to use it. Activating on individual sites within a Network avoids some of the confusion created by WordPress’ hiding of Network Activated plugins on the Plugin menu of individual sites. Alternatively, to avoid this confusion, you can install the jonradio Reveal Network Activated Plugins plugin.
  3. Review the Settings page.

常见问题

IMPORTANT: Support has moved to the ZATZLabs site and is no longer provided on the WordPress.org forums. Please visit the new ZATZLabs Forums. If you need a timely reply from the developer, please open a ticket.

Will this plugin work with other Login forms?

It depends on whether the other Login form provides two standard technical features of the WordPress Login form generated by wp-login.php:

  1. The “login_form_login” Action; and
  2. The “rememberme” Post field.

Both are used by this plugin.

How much Security am I sacrificing by using this plugin?

It was a conscious security decision by WordPress developers to always present the standard WordPress Login form with the Remember Me checkbox empty.

On the other hand, savvy users quickly got into the habit of being sure the Remember Me checkbox was selected every time they logged on. There is a similar risk in office environments where a person steps away from their office computer without locking it in the sense of requiring a password be typed to gain access.

The security risk is very dependent on how many registered users will login using a public or other shared computer that does not have an effective mechanism built in for automatically deleting auth cookies when one person finishes and the next begins. There is a similar risk in office environments where a person steps away from their office computer without locking it in the sense of requiring a password be typed to gain access.

Of course, the most important security question to ask is: What level of risk do other people using the same computer as a registered user pose?

评价

didn’t work

Mehrafsar 2016年9月26日 1 回复
It doesn't work

работает

lp85d 2016年9月3日 1 回复
всё супер!!! спасибо
阅读所有3条评价

贡献者及开发者

“Remember Me” 是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • David Gewirtz

将“Remember Me”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

2.1.1

Minor support update

2.1

  • Correct Login “bizarre behaviour” bug caused by not returning the WP Error object to Filter ‘wp_login_errors’

2.0

  • Add Settings to disable the plugin, set the Remember Me default, and remember User’s Remember Me choice

1.0

  • Prepare to WordPress Plugin Directory standards.

额外信息

  • 版本:2.1.1
  • 最后更新:2年前
  • 有效安装数量:700+
  • WordPress版本: 3.6 或更高版本
  • 最高兼容版本:5.8.7
  • 语言:
    English (US)
  • 标签:
    cookiesloginlogin formrememberremember me
  • 高级视图

评级

查看所有评价
  • 5星 2
  • 4星 0
  • 3星 0
  • 2星 0
  • 1星 1
登录以提交评价。

贡献者

  • David Gewirtz

支持

有话要说吗?是否需要帮助?

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 消息
  • 主机
  • 捐助
  • Swag
  • 支持
  • 开发者
  • 参与
  • 学习
  • 展示站点
  • 插件
  • 主题
  • 区块样板
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隐私
  • Public Code
WordPress.org
WordPress.org

China 简体中文

  • 访问我们的 Facebook 公共主页
  • 关注我们的 Twitter 账号
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
代码如诗