Remember Me Controls

Author: Scott Reilly
Version: 1.8.1
First released: 2010-09-27
Last update: 2020-01-02
Compatibility: WP 4.7 – 5.3.3
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.

Extended Description

Take control of the “Remember Me” feature for WordPress by having it enabled by default, customize how long users are remember, 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.
  • 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 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 | GitHub | Author Homepage

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


Click to see full-size image.

  1. A screenshot of the plugin's admin settings page.

    A screenshot of the plugin’s admin settings page.

  2. A screenshot of the login form with "Remember Me" checked by default

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

  3. A screenshot of the login form with "Remember Me" removed

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

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.

Q. Is this plugin GDPR-compliant?
A. Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors.

Q. Does this plugin include unit tests?
A. Yes.

Release Log

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

1.8 (2019-06-28)

  • This release is a minor update that verifies compatibility through WordPress 5.2+ and makes minor behind-the-scenes improvements.


  • Change: Initialize plugin on plugins_loaded action instead of on load
  • Change: Update plugin framework to 049
    • 049:
    • Correct last arg in call to add_settings_field() to be an array
    • Wrap help text for settings in label instead of p
    • Only use label for help text for checkboxes, otherwise use p
    • Ensure a textarea displays as a block to prevent orphaning of subsequent help text
    • Note compatibility through WP 5.1+
    • Update copyright date (2019)
    • 048:
    • When resetting options, delete the option rather than setting it with default values
    • Prevent double “Settings reset” admin notice upon settings reset
  • New: Add file and move all but most recent changelog entries into it
  • Unit tests:
    • Change: Update unit test install script and bootstrap to use latest WP unit test repo
    • Change: Ensure settings get reset before assigning newly set values
    • Fix: Fix broken unit test
  • Change: Note compatibility through WP 5.2+
  • Change: Add link to plugin’s page in Plugin Directory to
  • Change: Update copyright date (2019)
  • Change: Update License URI to be HTTPS
  • Change: Split paragraph in’s “Support” section into two

1.7 (2018-04-19)

  • New: Add support for BuddyPress Login widget
  • New: Add support for Sidebar Login plugin (
  • New: Add support for Login Widget With Shortcode plugin (
  • New: Change login form defaults according to plugin settings
  • Change: Update plugin framework to 047
    • 047:
    • Don’t save default setting values to database on install
    • Change “Cheatin’, huh?” error messages to “Something went wrong.”, consistent with WP core
    • Note compatibility through WP 4.9+
    • Drop compatibility with version of WP older than 4.7
    • 046:
    • Fix reset_options() to reference instance variable $options
    • Note compatibility through WP 4.7+
    • Update copyright date (2017)
    • 045:
    • Ensure reset_options() resets values saved in the database
    • 044:
    • Add reset_caches() to clear caches and memoized data. Use it in reset_options() and verify_config()
    • Add verify_options() with logic extracted from verify_config() for initializing default option attributes
    • Add add_option() to add a new option to the plugin’s configuration
    • Add filter ‘sanitized_option_names’ to allow modifying the list of whitelisted option names
    • Change: Refactor get_option_names()
    • 043:
    • Disregard invalid lines supplied as part of hash option value
    • 042:
    • Update disable_update_check() to check for HTTP and HTTPS for plugin update check API URL
    • Translate “Donate” in footer message
  • Change: Store setting name in class constant
  • New: Add
  • New: Add FAQ indicating that the plugin is GDPR-compliant
  • Change: Unit tests:
    • Add and improve unit tests
    • Default WP_TESTS_DIR to /tmp/wordpress-tests-lib rather than erroring out if not defined via environment variable
    • Enable more error output for unit tests
  • Change: Add GitHub link to readme
  • Change: Note compatibility through WP 4.9+
  • Change: Drop compatibility with versions of WP older than 4.7
  • Change: Update copyright date (2018)
  • Change: Update installation instruction to prefer built-in installer over .zip file

Copyright & Disclaimer

Copyright © 2010-2020 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
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 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.