Black Friday 40% off yearly and lifetime plans · 18d left Ends in 18d09h23m Claim 40% off
Security38 docs

How to Auto-check Remember Me in WordPress

Auto-check the Remember Me checkbox on the WordPress login form. Ensures users always have the longest session possible by default.

By Founder & Lead Developer

Last updated

2 minutes

Key takeaways

  • Single toggle, no nested options
  • Pre-checks the “Remember Me” checkbox on the login form
  • Pairs with Stay Logged In for maximum session duration
  • Users can still uncheck it manually if they want a session-only login
  • Useful for sites where long sessions are preferred

What Is the Auto-check Remember Me feature?

By default, the WordPress login form has an unchecked “Remember Me” checkbox. Users who want a long session (14 days by default, 30 days with Stay Logged In) need to manually check the box.

The Auto-check Remember Me feature pre-checks the box on page load, so users automatically get the long session unless they uncheck it.

Why You Need It

The default behavior (unchecked) assumes most users want short sessions. But for many sites, this is the opposite of what users want:

  • Most users prefer long sessions: They don’t want to log in every 2 weeks
  • Manual check is friction: Forgetting to check means a shorter session
  • Forgotten sessions hurt UX: Users who get logged out unexpectedly blame the site, not themselves
  • Internal sites: For company intranets or member sites, users expect to stay logged in

The Auto-check Remember Me feature is for sites where long sessions are the default expectation.

Trade-offs vs manual check

Auto-checking has trade-offs:

  • Shared devices: Users who share devices (e.g., library computers) may forget to uncheck
  • Stolen devices: A stolen device with auto-check has a longer valid session
  • Public computers: Kiosks and public computers should never have Remember Me checked
  • Compliance: Some regulations require short sessions for sensitive data

For most public-facing sites, the default (unchecked) is appropriate. For internal sites or trusted environments, auto-check is useful.

How to Auto-check Remember Me in WordPress

  1. Step 1

    Navigate to Settings

    Click into the Classic Monks plugin settings in your WordPress dashboard.

  2. Step 2

    Go to the Security Tab

    Click on the Security menu, then click the Stay Logged In subtab.

  3. Step 3

    Enable Auto-check Remember Me

    Scroll to Auto-check Remember Me on Login Page and toggle on.

    WordPress stay logged in settings

  4. Step 4

    Save Changes

    Click Save Changes.

  5. Step 5

    Test

    Visit the login form. The “Remember Me” checkbox should be pre-checked. If you want a session-only login, uncheck the box before submitting.

Configuration Options

Option Description Default
Auto-check Remember Me Master toggle. Off

No nested options. The pre-check applies to all users (no per-role control).

What Gets Affected

  • The login form: the “Remember Me” checkbox is pre-checked
  • The default session duration: users get the long session by default
  • The user experience: one less thing to remember to check

What Does NOT Get Affected

  • The user’s ability to uncheck: users can still uncheck the box manually
  • The session duration itself: still controlled by WordPress core + Stay Logged In
  • The wp-admin: not affected (after login)
  • The user roles: not affected

Advanced Options (Developers)

This feature registers 1 WordPress hook in stay-logged-in.php:

Actions:

  • login_footer calls cm_remember_me_checked() (Auto-checks Remember Me checkbox on login form)
// Hooked in stay-logged-in.php
add_action( 'login_footer', 'cm_remember_me_checked' );

The feature modifies WordPress behavior by registering or removing hooks. Disabling it reverses those changes and WordPress returns to its default behavior.

Troubleshooting

4 problems and how to fix each one.

The Remember Me checkbox is not pre-checked

Cause: The toggle is off, or a custom login form is being used.
Fix: Verify the toggle is on. The feature only affects the default WordPress login form. Custom login forms (e.g., WooCommerce, theme login) are not affected.

Users are being logged out unexpectedly on shared devices

Cause: The Remember Me is auto-checked, and users forget to uncheck it.
Fix: Disable the toggle. Or adjust the affected roles in the plugin settings under Security > Auto Check Remember Me.

I want different behavior for different forms

Cause: The feature is global.
Fix: Use the cm_auto_check_remember_me_enabled filter to check the form context. Different forms have different $context values (e.g., ‘login’, ‘lostpassword’).

The cookie is not being set as expected

Cause: Browser settings or a caching plugin is interfering.
Fix: Check browser settings (e.g., “Block all cookies” should be off). Verify the cookie is being set by viewing the page’s cookies in the browser’s developer tools.

Was this doc helpful?

Your answer tells us which docs to fix first.

Still stuck? Ask on the forum or email help@classicmonks.com.
Joy Chetry
Written by the person who built it

Joy Chetry

Founder & Lead Developer, Classic Monks

Joy is the founder of Classic Monks and GoodMonks Solutions, a web development agency that builds WordPress and WooCommerce sites for clients. Classic Monks grew out of the agency's own need to consolidate 20 to 30 separate plugins into one core stack.

Follow this doc on a real site.

Open a private WordPress site with Classic Monks, WooCommerce and Bricks Builder installed, and follow this doc step by step. Free for 24 hours, no card.

280 docs, written by Joy Chetry 15 day refund window