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.
The first of a new series of Install/Activate/Go plugins that require no setup or settings changes to work for 99% of Use Cases.
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 My 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
Defaults:
- Remember Me is the default for all logins
- The User’s Remember Me choice will be remembered for one year
There are other plugins that make Remember Me the default, but I wrote this plugin in October 2013 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. – My 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.