WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Plugins» How to Remove the Remember Me Option from Your WordPress Login

How to Remove the Remember Me Option from Your WordPress Login

Last updated on November 26th, 2014 by Editorial Staff
33 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Remove the Remember Me Option from Your WordPress Login

Earlier on WPBeginner we showed you how to keep WordPress from forgetting you with Always Remember me. This allows you to stay logged in to your WordPress site. However, there are a lot of people who access their WordPress site using public networks and computers. The remember me option below the login form sets a cookie which keeps you logged in for two weeks. This could be a potential security risk for people who are accessing their WordPress admin area from public computers. In this article, we will show you how to remove the remember me option from your WordPress login page.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is install and activate the Remember Me Not plugin for WordPress. Upon activation, the plugin completely removes the remember me check box from the WordPress login page.

Removing remember me checkbox from WordPress login page

Using Remember Me Not will force you and all registered users of your site to sign in each time they want to start a new session in WordPress admin area. They can save the username and password in their browser’s storage, but they can not set the remember me option to stay logged in for two weeks. We would also like to advise that whenever you are accessing your WordPress admin area from a public computer or network, simply make a habit to log out when you are done working on your website.

We hope that this article helped you remove the remember me option from your WordPress login. Would you ever use this on your site? Let us know in the comments below.

33 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

10 Comments

Leave a Reply
  1. Garrett O'Brien says:
    Jul 3, 2016 at 11:39 pm

    NOTE TO MODERATOR:

    That line to delete did not display properly, I completely forgot that this comment section is HTML friendly…

    This is the correct code, spaces added to keep the display intact…

    < input name="rememberme" type="checkbox" id="rememberme" value="forever" / >

    Reply
  2. Garrett O'Brien says:
    Jul 3, 2016 at 11:33 pm

    Actually, instead of either CSS display:none or using an addition to the function.php file, open the wp-login.php and remove the following line

    <input name="rememberme" type="checkbox" id="rememberme" value="forever" />

    We haven’t tried testing it by moving the wp-login.php to the child theme as we have a checklist of things to do with each WP upgrade, this being one of them….

    Reply
  3. Garrett O'Brien says:
    Jul 3, 2016 at 11:22 pm

    Go to your function.php file and add this to the end…

    //Hide Remember Me check box from WordPress login page
    add_action(‘login_head’, ‘har_remember_me_not’);
    function har_remember_me_not()
    {
    echo ‘.forgetmenot { display:none; }’;
    }

    Not sure if it will fix the security issue noted by NATHAN CORBIER but it will reduce the number of plugins you have by one…

    Reply
  4. Mathew Porter says:
    May 22, 2013 at 5:44 pm

    Is there also not a file to reduce the time set for a user staying logged in when the ‘remember me’ box is ticked such as a cookie etc?

    Reply
  5. Kerry Webster says:
    May 9, 2013 at 9:37 pm

    @Nathan +1 – Plugin’s way is better. .css change to display:none is a mask. You could of course incorporate this plugin code into the functions.php file of a theme if you want to permanently remove the functionality but this is a user/site owner preference. I would build this into a option for the theme to allow the user to decide.

    Reply
  6. Nathan Corbier says:
    May 9, 2013 at 11:12 am

    Setting the rememberme ID to display:none; isn’t a good fix. Bots, smart people who inspect source, or a browser that simply ignores display:none will still show it, and still allow the form to be submitted with that checked.

    If you are plugging what you consider to be a security hole, don’t half ass it by “making the check mark go away.” It hasn’t left, its just your browser is nice enough to honor the CSS display attribute.

    The hole still exists.

    Reply
  7. chris mccoy says:
    May 5, 2013 at 9:40 am

    instead of doing a regex on login_form you can also just set the css class to display none

    p.forgetmenot { display:none;}

    Reply
  8. RW says:
    May 3, 2013 at 11:15 am

    Rather than a plugin, couldn’t you add this to your CSS

    p.forgetmenot {display:none;}

    Thanks,
    Bob

    Reply
  9. Chris says:
    May 3, 2013 at 8:26 am

    Hi, thanks for that great tip – is there a solution to remove this without using a plugin?
    Thanks.

    Reply
    • RW says:
      May 6, 2013 at 10:44 am

      please seem comment above. Just add
      ‘p.forgetmenot {display:none;}’ to your css stylesheet.

      Thanks,
      Bob

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
OptinMonster
OptinMonster
Convert website visitors into email subscribers. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
Beaver Builder Coupon Code
Beaver Builder Coupon
Get the best possible price on this easy drag-and-drop page builder plugin. From just $99 in 2020.
7Theme
7Theme Coupon
Get 10% OFF on Premium WordPress Themes by 7Theme.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.