You can reset the security keys, forcing all cookies to expire and all users to log back in. Edit wp-config.php and change even one character in any of the security strings.
There’s a plugin that allows you to set the expiry time on your user’s cookies. I haven’t personally used it, so proceed with caution: Cookie Timout
Sending the user back to /wp-login.php?reauth=true
removes the cookie and logs the user out, even if he was previously logged in with a cookie.
Finally, if you’re developing a plugin or theme, you can call wp_clear_auth_cookie();
and the currently-logged-in user’s cookie will be cleared. This will not necessarily log the user out, but it will remove the cookie for the next time the user visits the site.
Related Posts:
- Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
- Login page ERROR: Cookies are blocked due to unexpected output
- Removing username from the ‘wordpress_logged_in’ cookie
- Getting “Cookies are blocked or not supported by your browser” on login page
- Cookie settings for session across WPML subdomains using custom AJAX login
- Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past
- Get user ID after logging in
- Login with cookie but without using WordPress code
- Get wordpress stored cookies for custom login
- How to get login data (session) outside WordPress?
- Login cookie across multiple domains on network w/ mapping
- Can’t login after URL change
- How to set different cookies for logged in admin users and logged in non admin users?
- 2 wordpress blogs with 1 users table and 1 login
- Logins through alias
- v5.6.2 User cannot stay logged in – wordpress_test cookie placed but not auth cookies
- Removing wordpress cookie from non-wordpress site
- Getting a person’s username from a wordpress cookie
- One time login on 2 different WordPress sites
- Multiple issues with Ajax login function due to browsers and cookies
- Sharing a logged in session with a custom subdmain site?
- Get WordPress logged in username from root domain when WP is installed in a subfolder
- wp-cron event doesn’t run when custom login API is enabled
- Extend Cookie with auth_cookie_expiration not working
- Custom login method appears to ignore auth_cookie_expiration
- Why deleting/removing cookies in WordPress does not log me out from admin?
- Cookies error during first time login attempt
- Opening protected page with cookie?
- WordPress Cookies – wp_set_auth_cookie
- Why doesn’t the “Remember Me” checkbox work for me on a live website? Only works on a local server environment
- Share login status across subdomains without network
- How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?
- SSO / authentication integration with external ‘directory service’
- Preventing session timeout
- ‘Password field is empty’ error when using autofill in Chrome
- Prevent wp_login_form() from redirecting to wp-admin when there are errors
- How to disable autocomplete on the wp-login.php page
- how to display the wordpress login and register forms on a page?
- How can I add a custom script to footer of login page?
- How do I turn off the ability to login?
- Give visitor access to password protected page/post via external script
- WordPress Login Footer URL
- moving server can not login
- Save last login date in global before change it?
- Subdomain login problems
- Is back-end access not required for an app to post to my blog?
- Store brute-force IP addresses
- How to create a private login page for admin.?
- WordPress Security – How to block alternative WordPress access
- Different homepage for logged in users
- reset password link redirect to login page
- Deregister default wp-admin css on login screen only?
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- How can I login as admin after redirect to custom login page
- Login cookies set as wrong domain
- Why would the login page reload indefinitely?
- Set Default User Role
- Creating custom login errors
- Why is wp-login trying to send an email?
- Replacing default display name to login name
- Why does is_user_logged_in() return false after I change user password on the front end?
- How to generate “WP_Error” Object for user login?
- ?login=failed only attached to URL under certain circumstances
- WordPress not logged in locally with correct username and password
- my wp-login page doesn’t load [closed]
- Requiring login for specific pages
- login trouble WordPress can change IDs created by hoster site
- WordPress registration page template
- Removing “public” user registration without completely turning it off?
- Require re-login when logged-in user attempts to access restricted page
- Disable registration on certain condition
- Temporally disable password to login with empty password?
- Reset Password Limit not working
- User not able to sign in after wp_authenticate() and wp_signon() wordpress
- WordPress site login Redirect
- On Homepage “is_user_logged_in()” function is not working after login and it is working after refresh the page?
- Problem in auto login after registration
- Cant reset password my wordpress password not even with phpMyAdmin
- How to invalidate `password reset key` after being used
- Does it make sense to check a nonce on user log in?
- Special link for no automatic login (no username and no password)
- Global login to password protected pages
- Disable / Remove Password for Login WordPress
- WordPress Auto Login From Email Link
- Building a custom login form – encountering issues
- Making sure two different wordpress website has auto login
- How do i Redirect specific user(WooCommerce Sign-in not wordpress admin page sign-in) to specific page
- Chosen user password in registration is not being accepted on Login
- Improvements to “limit login attempts” plugin
- Add a required field to Registration
- loging to Admin page not working at all
- Can’t login through wp-login.php on fresh installation
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- Using wp_login_form passowrd as undefined
- Redirect non-members to about/intro page
- Handle POST request sent from an external site for login?
- Unable to login after adding ReCaptacha without API key
- WordPress MU: Cookie error when trying to login on network WP instance
- Login and register by API
- Log in a user upon password reset?