=== Remember Me Controls === Contributors: coffee2code Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522 Tags: login, remember, remember me, cookie, session, coffee2code License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Requires at least: 4.7 Tested up to: 4.9 Stable tag: 1.7 Have "Remember Me" checked by default on the login page and configure how long a login is remembered. Or disable the feature altogether. == 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](http://coffee2code.com/wp-plugins/remember-me-controls/) | [Plugin Directory Page](https://wordpress.org/plugins/remember-me-controls/) | [GitHub](https://github.com/coffee2code/remember-me-controls/) | [Author Homepage](http://coffee2code.com) == Installation == 1. Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting 1. Install via the built-in WordPress plugin installer. Or download and unzip `remember-me-controls.zip` inside the plugins directory for your site (typically `wp-content/plugins/`) 1. Activate the plugin through the 'Plugins' admin menu in WordPress 1. Go to "Settings" -> "Remember Me" and configure the settings == Frequently Asked Questions == = How long does WordPress usually keep me logged in? = 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. = How can I set the session duration to less than an hour? = You can't (and probably shouldn't). With a session length of less than an hour you risk timing out users too quickly. = Is this plugin GDPR-compliant? = Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors. = Does this plugin include unit tests? = Yes. == Screenshots == 1. A screenshot of the plugin's admin settings page. 2. A screenshot of the login form with "Remember Me" checked by default 3. A screenshot of the login form with "Remember Me" removed == Changelog == = 1.7 (2018-04-19) = * New: Add support for BuddyPress Login widget * New: Add support for Sidebar Login plugin (https://wordpress.org/plugins/sidebar-login/) * New: Add support for Login Widget With Shortcode plugin (https://wordpress.org/plugins/login-sidebar-widget/) * 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 README.md * 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 = 1.6 (2016-03-23) = Highlights: * This release largely consists of minor behind-the-scenes changes. Details: * Change: Update plugin framework to 041: * Change class name to c2c_RememberMeControls_Plugin_041 to be plugin-specific. * Set textdomain using a string instead of a variable. * Don't load textdomain from file. * Change admin page header from 'h2' to 'h1' tag. * Add `c2c_plugin_version()`. * Formatting improvements to inline docs. * Change: Add support for language packs: * Set textdomain using a string instead of a variable. * Remove .pot file and /lang subdirectory. * Change: Express WP default cookie expiration duration as 2 days instead of 48 hours. * Change: Declare class as final. * Change: Explicitly declare methods in unit tests as public or protected. * Change: Minor code reformatting. * Change: Minor tweak to description. * Change: Minor improvements to inline docs and test docs. * New: Add LICENSE file. * New: Create empty index.php to prevent files from being listed if web server has enabled directory listings. * Change: Note compatibility through WP 4.4+. * Change: Remove support for versions of WordPress older than 4.1. * Change: Update copyright date (2016). = 1.5 (2015-02-22) = * Add unit tests * Update plugin framework to 039 * Explicitly declare `activation()` and `uninstall()` static * Reformat plugin header * Minor code reformatting (spacing, bracing) * Change documentation links to wp.org to be https * Minor documentation spacing changes throughout * Note compatibility through WP 4.1+ * Update copyright date (2015) * Add plugin icon * Regenerate .pot = 1.4 (2014-01-15) = * Add 'About' section to help panel * Move descriptive text from top of settings page into 'About' section of help panel * Remove a bunch of pre-WP3.5 compatibility code * Update plugin framework to 037 * Better singleton implementation: * Add `get_instance()` static method for returning/creating singleton instance * Make static variable 'instance' private * Make constructor protected * Make class final * Additional related changes in plugin framework (protected constructor, erroring `__clone()` and `__wakeup()`) * Add checks to prevent execution of code if file is directly accessed * Use explicit path for require_once() * Discontinue use of PHP4-style constructor * Discontinue use of explicit pass-by-reference for objects * Minor documentation improvements * Minor code reformatting (spacing, bracing) * Note compatibility through WP 3.8+ * Drop compatibility with version of WP older than 3.6 * Update copyright date (2014) * Regenerate .pot * Change donate link * Update screenshots * Add banner = 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 == Upgrade Notice == = 1.7 = Recommended update: added support for BuddyPress Login widget, Sidebar Login plugin, and Login Widget With Shortcode plugin; updated plugin framework to version 047; compatibility is now with WP 4.7-4.9+; updated copyright date (2018). = 1.6 = Minor update: improved support for localization; verified compatibility through WP 4.4; removed compatibility with WP earlier than 4.1; updated copyright date (2016) = 1.5 = Minor update: add unit tests; updated plugin framework to 039; noted compatibility through WP 4.1+; updated copyright date (2015); added plugin icon = 1.4 = Recommended update: updated plugin framework; compatibility now WP 3.6-3.8+ = 1.3 = Minor update. Highlights: updated plugin framework; noted compatibility through WP 3.5+; and more. = 1.2 = Recommended update. Highlights: added new setting to remember logins forever; misc improvements and minor bug fixes; updated plugin framework; compatibility is now for WP 3.1 - 3.3+. = 1.1 = Recommended upgrade! Fixed bug relating to value conversion from hours to seconds; fix for proper activation; noted compatibility through WP 3.2; dropped compatibility with versions of WP 3.0; deprecated use of global updated plugin framework; and more. = 1.0.1 = Recommended bugfix release. = 1.0 = Initial public release!