- Author: Scott Reilly
- Version: 1.9.1
- First released: 2010-09-27
- Last update: 2021-02-14
- Compatibility: WP 4.9 – 5.6.8
- Download: [ zip ]
Have "Remember Me" checked by default on the login page and configure how long a login is remembered. Or disable the feature altogether.
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.
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:
Find out more at the plugin’s WordPress Plugin Repository page.
Click to see full-size image.
- Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting
- Install via the built-in WordPress plugin installer. Or download and unzip
remember-me-controls.zipinside the plugins directory for your site (typically
- Activate the plugin through the ‘Plugins’ admin menu in WordPress
- Go to “Settings” -> “Remember Me” and configure the settings
- 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)
- 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.
- New: Add HTML5 compliance by omitting
typeattribute 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
- 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
- Allow setting integer input value to include commas
number_format_i18n()to format integer value within input field
- Update link to coffee2code.com to be HTTPS
readme_url()to refer to plugin’s readme.txt on plugins.svn.wordpress.org
- Remove defunct line of code
- 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
- 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
- Change: Remove duplicative
- Change: Use HTTPS for link to WP SVN repository in bin script for configuring unit tests
- New: Add
- Change: Updated screenshot
- Change: Note compatibility through WP 5.3+
- Change: Update copyright date (2020)
- Change: Tweak changelog formatting for v1.8 release
Copyright & DisclaimerCopyright © 2010-2022 by Scott Reilly (aka coffee2code)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Discussion / Support
Have any questions, comments, or suggestions? Please provide them via the plugin’s WordPress.org support forum. I’ll do my best to reply in a timely fashion and help as best I can.
Unfortunately, I cannot provide guaranteed support, nor do I provide support via any other means.
Was this plugin useful useful to you? Consider giving it a rating. If you’re inclined to give it a poor rating, please first post to the support forum to give me a chance to address or explain the situation.