Remember Me Controls

Author:Scott Reilly
Version:1.3
Last update:2012-12-18
Compatibility:WP 3.1 – 3.5.1
Comments:go here
Download:[ zip ]
Description:

Take control of the “Remember Me” feature for WordPress. 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.

Extended Description

Take control of the “Remember Me” feature for WordPress. 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” : 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” : Customize how long WordPress will remember a login session when “Remember Me” is checked.
  • Disable “Remember Me” : 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 your browser then you will have to log in again since WordPress will not be able to locate the cookies needed to identify you.

Links: Plugin Homepage | Plugin Directory Page | Author Homepage

Find out more at the plugin’s WordPress Plugin Repository page.

Screenshots

Click to see full-size image.

  • remember-me-controls screenshot 1

    A screenshot of the plugin’s admin settings page.

  • remember-me-controls screenshot 2

    A screenshot of the login form with “Remember Me” checked by default

  • remember-me-controls screenshot 3

    A screenshot of the login form with “Remember Me” removed


Installation

  1. Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting
  2. Unzip remember-me-controls.zip inside the /wp-content/plugins/ directory (or install via the built-in WordPress plugin installer)
  3. Activate the plugin through the ‘Plugins’ admin menu in WordPress
  4. Go to “Settings” -> “Remember Me” and configure the settings

Frequently Asked Questions

Q. How long does WordPress usually keep me logged in?
A. 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”, WordPress keeps you logged in for up to 14 days.

Q. How can I set the session duration to less than an hour?
A. You can’t (and probably shouldn’t). With a session length of less than an hour you risk timing out users too quickly.


Release Log

1.3

  • Use YEAR_IN_SECONDS and HOUR_IN_SECONDS constants instead of doing the time calculation
  • Add backwards compatibility for *_IN_SECONDS constants added to WP 3.5
  • Update plugin framework to 035
  • Discontinue use of explicit pass-by-reference for objects
  • Regenerate .pot
  • Re-license as GPLv2 or later (from X11)
  • Add ‘License’ and ‘License URI’ header tags to readme.txt and plugin file
  • Note compatibility through WP 3.5+
  • Update copyright date (2013)
  • Remove ending PHP close tag
  • Create repo’s WP.org assets directory
  • Move screenshots into repo’s assets directory

1.2

  • Add setting ‘remember_me_forever’ to allow user to forego having to make up a large number
  • Set a max expiration of 100 years in the future to prevent error if user supplies a high enough number to exceed the year 9999
  • Use pure JS instead of jQuery for checking checkbox
  • Hook into ‘login_footer’ action to output JS
  • Change hooking of ‘login_head’ to output CSS rather than calling login_head()
  • Remove login_head()
  • Allow setting minimum duration of 1 hour (as was documented)
  • Remove support for global $c2c_remember_me_controls variable
  • Update plugin framework to 031
  • Note compatibility through WP 3.3+
  • Drop compatibility with versions of WP older than 3.1
  • Create ‘lang’ subdirectory and move .pot file into it
  • Regenerate .pot
  • Update screenshot
  • Add screenshots 2 and 3
  • Add more description, FAQ question
  • Add link to plugin directory page to readme.txt
  • Update copyright date (2012)

1.1

  • Fix bug with missing remember_me_duration setting conversion from hours to seconds
  • Update plugin framework to version v023
  • Save a static version of itself in class variable $instance
  • Deprecate use of global variable $c2c_remember_me_controls to store instance
  • Fix to properly register activation and uninstall hooks
  • Add __construct(), activation(), uninstall()
  • Explicitly declare all class functions public
  • Note compatibility through WP 3.2+
  • Drop compatibility with versions of WP older than 3.0
  • Minor code formatting changes (spacing)
  • Minor readme.txt formatting changes
  • Fix plugin homepage and author links in description in readme.txt
  • Update copyright date (2011)

1.0.1

  • Fix bug where having “Remember Me” checked but having no remember me duration configured resulted in login error
  • Fix bug where incorrect number of arguments were requested from the ‘auth_cookie_expiration’ action

1.0

  • Initial release

Copyright & Disclaimer

Copyright © 2010-2012 by Scott Reilly (aka coffee2code)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.