{"id":20039,"date":"2019-11-27T09:14:35","date_gmt":"2019-11-27T16:14:35","guid":{"rendered":"https:\/\/memberpress.com\/?p=20039"},"modified":"2019-11-27T09:18:52","modified_gmt":"2019-11-27T16:18:52","slug":"how-to-force-logout-all-users-in-your-membership-site","status":"publish","type":"post","link":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/","title":{"rendered":"How to Force Logout All Users in Your Membership Site"},"content":{"rendered":"\n<p>WordPress is ideal for creating membership websites as the software already has good built-in support for handling multiple logged in users. Then, by installing a <a href=\"https:\/\/memberpress.com\/features\/\">reputable membership plugin<\/a>, you can enhance this functionality to control how those users get access to your site, which content they can view, and a lot more.<\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-69dc8cabdf22a\" class=\"ez-toc-cssicon-toggle-label\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">WHAT'S INSIDE<\/p>\n<span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69dc8cabdf22a\"  \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#Why_Force_Logout_All_Users_in_Your_Membership_Site\" >Why Force Logout All Users in Your Membership Site<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#Dealing_with_Security_Issues\" >Dealing with Security Issues<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#Changing_Registration_Policies\" >Changing Registration Policies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#Updating_Your_Site_and_Its_Content\" >Updating Your Site and Its Content<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#Temporarily_Closing_Your_Membership_Site\" >Temporarily Closing Your Membership Site<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#Removing_Inactive_Members\" >Removing Inactive Members<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#How_to_Force_Logout_All_Users_of_Your_WordPress_Membership_Site\" >How to Force Logout All Users of Your WordPress Membership Site<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#How_to_Force_Logout_Your_WordPress_Users_with_a_Plugin\" >How to Force Logout Your WordPress Users with a Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#How_to_Force_Logout_All_Users_Without_Using_a_Plugin\" >How to Force Logout All Users Without Using a Plugin<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#Final_Thoughts\" >Final Thoughts<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p>However, if there comes a time when you need to force logout all users in your membership site, you\u2019ll soon discover that this functionality isn\u2019t present in the core WordPress software. So if you suspect that unauthorized users might be logged into your site, or you need to restrict access to your membership content before updating it, by default there\u2019s not much you can do through the WordPress dashboard to force those users to log out.<\/p>\n\n\n\n<p>Thankfully, as you\u2019re about to see in this guide, it's relatively easy to force logout all users in your WordPress membership site by either installing a free plugin or taking a more hands-on approach to get the job done.<\/p>\n\n\n\n<p>But before we get to how you can force all, or some, of your members to log out of your site, here\u2019s a quick look at why you might want to do this in the first place.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Force_Logout_All_Users_in_Your_Membership_Site\"><\/span>Why Force Logout All Users in Your Membership Site<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are many reasons why you might want to force all of the users in your membership site to logout. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Dealing_with_Security_Issues\"><\/span>Dealing with Security Issues<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Perhaps one of the most common scenarios is if you suspect your site has been hacked or its security has been compromised in some way. By using the WPForce Logout plugin that we look at later on in this guide, you can see exactly who is logged into your site, and then if necessary, individually force logout any of those users.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Changing_Registration_Policies\"><\/span>Changing Registration Policies<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Another reason why you might want to force all of your users to logout is if you\u2019ve updated the security of your membership site. If you\u2019ve now started requiring all members or users to confirm their email address before being able to log in, but have users who've already logged in, prior to this change, you can now force logout those users, by following the advice in this guide,  and require them to confirm their email before being able to log in again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Updating_Your_Site_and_Its_Content\"><\/span>Updating Your Site and Its Content<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you\u2019re about to update your membership site, by adding more content or perhaps changing its design, then you might want to force logout all users before starting work. Doing so will prevent them from experiencing any issues while you are working on your website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Temporarily_Closing_Your_Membership_Site\"><\/span>Temporarily Closing Your Membership Site<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If there\u2019s another reason why you need to temporarily close your membership site or restrict access, then knowing how to force all of your users to log out will enable you to ensure that there isn\u2019t anyone who still has access to your site and its content.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Removing_Inactive_Members\"><\/span>Removing Inactive Members<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Finally, if a member cancels their subscription or their membership is terminated for some other reason, you can force log them out to end their session and prevent them from accessing your members-only content.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Force_Logout_All_Users_of_Your_WordPress_Membership_Site\"><\/span>How to Force Logout All Users of Your WordPress Membership Site<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As you\u2019re using WordPress for your membership site, you can easily force the log out of all of your users \u2014 or just some of them \u2014 in a few clicks by using a purpose-built plugin. <\/p>\n\n\n\n<p>In this guide, as well as showing you how to force your logged-in users to log out with a plugin, we\u2019ll demonstrate how to do it manually, just in case you\u2019d rather not install another plugin on your WordPress website. <\/p>\n\n\n\n<p>However, if you think you\u2019ll be forcing your members to logout on multiple occasions, using the recommended plugin is the most convenient method.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Force_Logout_Your_WordPress_Users_with_a_Plugin\"><\/span>How to Force Logout Your WordPress Users with a Plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When it comes to choosing a plugin that'll enable you to force logout your membership site users, <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/wp-force-logout\/\" target=\"_blank\">WPForce Logout<\/a> is the obvious choice. Not only is this plugin free to use but it also has impressive five out of five-stars rating (albeit from only six reviews).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"900\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin.png\" alt=\"WPForce Logout Plugin\" class=\"wp-image-20040\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin.png 1600w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-300x169.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-1024x576.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-768x432.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-1536x864.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-302x170.png 302w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-840x473.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-1216x684.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-700x394.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-156x88.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin-1080x608.png 1080w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>As this plugin is freely available, it can be installed directly from inside your WordPress dashboard. To add it to your site, simply log in to your WordPress admin area and click on the Add New item from the Plugins menu on the left side of your dashboard. From there, enter WPForce Logout into the search box, and then click on the Install Now and Activate buttons.<\/p>\n\n\n\n<p>Once the plugin is running on your website, you can see which of your members or users are currently logged in to your site from the WordPress Users screen inside your dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"691\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users.png\" alt=\"View logged in users\" class=\"wp-image-20041\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users.png 1600w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-300x130.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-1024x442.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-768x332.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-1536x663.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-394x170.png 394w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-840x363.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-1216x525.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-700x302.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-156x67.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users-1080x466.png 1080w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>From the WordPress Users screen you now force logout all users on your membership site or logout individual users. You can also logout multiple users at the same time by checking the boxes next to their details, selecting Logout from the Bulk Actions dropdown menu, and then pressing the Apply button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"455\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users.png\" alt=\"Log out multiple users\" class=\"wp-image-20042\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users.png 1600w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-300x85.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-1024x291.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-768x218.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-1536x437.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-598x170.png 598w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-840x239.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-1216x346.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-700x199.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-156x44.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users-1080x307.png 1080w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>Once you\u2019ve logged out one or more users, their status will change to Offline and they will have to log in to your membership site again in order to access your protected content.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Force_Logout_All_Users_Without_Using_a_Plugin\"><\/span>How to Force Logout All Users Without Using a Plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you don\u2019t want to use a plugin, perhaps you only need to force logout all your users once, or you\u2019re just curious to know how it\u2019s done, this part of our guide will explain the process for doing it in a more manual way. For this to work, you will need access to the files on your hosting server, with the ability to edit the wp-config.php file from your WordPress installation.<\/p>\n\n\n\n<p>Two common ways to access this file include accessing your server space via the File Manager of cPanel \u2014 or another type of control panel software \u2013 provided by your web host or via FTP software. To find out how to get this access, you\u2019ll need to refer to the documentation supplied by your choice of web host.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"741\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel.png\" alt=\"cPanel\" class=\"wp-image-20043\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel.png 1600w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-300x139.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-1024x474.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-768x356.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-1536x711.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-367x170.png 367w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-840x389.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-1216x563.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-700x324.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-156x72.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-1080x500.png 1080w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>Once you know how to access the files on your web server, you\u2019ll need to find the wp-config.php file that\u2019s located inside the public_html folder of your website\u2019s root directory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"900\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager.png\" alt=\"cPanel File Manager\" class=\"wp-image-20044\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager.png 1600w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-300x169.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-1024x576.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-768x432.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-1536x864.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-302x170.png 302w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-840x473.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-1216x684.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-700x394.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-156x88.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager-1080x608.png 1080w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>Once you\u2019ve found the file, you\u2019ll need to open it for editing. First, though, it\u2019s recommended that you back up the file, either by creating a copy of it or downloading it to your computer.<\/p>\n\n\n\n<p>If you are accessing wp-config.php via the cPanel File Manager, you can right-click on the file, and then select Edit from the menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"857\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu.png\" alt=\"File Manager Menu\" class=\"wp-image-20045\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu.png 1600w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-300x161.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-1024x548.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-768x411.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-1536x823.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-317x170.png 317w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-840x450.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-1216x651.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-700x375.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-156x84.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu-1080x578.png 1080w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>Once you\u2019re editing the wp-config.php file, you\u2019ll be able to change the lines that relate to the authentication of the logged in users. Doing so will force logout all of the users in your membership site.<\/p>\n\n\n\n<p>To find the relevant part of the wp-config.php file, search for Authentication. This will take you to this part of the file:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"556\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication.png\" alt=\"Keys\" class=\"wp-image-20046\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication.png 1600w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-300x104.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-1024x356.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-768x267.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-1536x534.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-489x170.png 489w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-840x292.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-1216x423.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-700x243.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-156x54.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication-1080x375.png 1080w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>Replacing these keys in the wp-config.php file with new ones will force logout all users on your WordPress website. To get new keys, visit the site mentioned in the file: <a href=\"https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/<\/a><\/p>\n\n\n\n<p>There, you\u2019ll find a new set of keys that you can copy and then paste into your wp-config.php file to replace the existing ones. After saving the file, all of the logged-in users will be logged out.<\/p>\n\n\n\n<p>As long as their accounts are still active on your site, those users will be able to log in again. However, if you are working on your website and want to prevent anyone apart from yourself from logging in, you can do so with a plugin like <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/disable-login\/\" target=\"_blank\">Disable Login<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You now know two different ways to force logout all users in your membership site.<\/p>\n\n\n\n<p>Whether you choose to <a href=\"https:\/\/wordpress.org\/plugins\/wp-force-logout\/\" target=\"_blank\" rel=\"noreferrer noopener\">use a plugin<\/a> or decide to edit the wp-config.php file, it\u2019s very easy to log out your users.<\/p>\n\n\n\n<p><em>If you have any questions about this, please leave a comment below. <\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is ideal for creating membership websites as the software already has good built-in support for handling multiple logged in users. Then, by installing a reputable membership plugin, you can enhance this functionality to control how those users get access to your site, which content they can view, and a lot more. However, if there [\u2026]<\/p>\n","protected":false},"author":2122,"featured_media":20048,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","_strive_post_notes":"","footnotes":""},"categories":[134],"tags":[610,611,299],"class_list":{"0":"post-20039","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-how-to-2","8":"tag-force-logout","9":"tag-logout-users","10":"tag-security","11":"entry"},"acf":{"plans":["scale"],"is_featured":false,"download_source":"none","mothership_slug":"","download_url":""},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Joe Fylan\"\/>\n\t<meta name=\"keywords\" content=\"force logout users,,force logout,logout users,security\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"es_ES\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to Force Logout All Users in Your Membership Site\" \/>\n\t\t<meta property=\"og:description\" content=\"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-FT.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-FT.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t\t<meta property=\"og:image:height\" content=\"733\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-11-27T16:14:35+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-11-27T16:18:52+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to Force Logout All Users in Your Membership Site\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-FT.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#blogposting\",\"name\":\"How to Force Logout All Users in Your Membership Site\",\"headline\":\"How to Force Logout All Users in Your Membership Site\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Force-Logout-All-Users-FT.jpg\",\"width\":1100,\"height\":733},\"datePublished\":\"2019-11-27T09:14:35-05:00\",\"dateModified\":\"2019-11-27T09:18:52-05:00\",\"inLanguage\":\"es-ES\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#webpage\"},\"articleSection\":\"How To, force logout, logout users, security\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/category\\\/how-to-2\\\/#listItem\",\"name\":\"How To\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/category\\\/how-to-2\\\/#listItem\",\"position\":2,\"name\":\"How To\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/category\\\/how-to-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#listItem\",\"name\":\"How to Force Logout All Users in Your Membership Site\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#listItem\",\"position\":3,\"name\":\"How to Force Logout All Users in Your Membership Site\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/category\\\/how-to-2\\\/#listItem\",\"name\":\"How To\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/\",\"name\":\"Joe Fylan\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/8efbb5b67aecb906b5f72f49bd070141.jpg?ver=1775748485\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/\",\"name\":\"How to Force Logout All Users in Your Membership Site\",\"description\":\"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.\",\"inLanguage\":\"es-ES\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/Force-Logout-All-Users-FT.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#mainImage\",\"width\":1100,\"height\":733},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/how-to-force-logout-all-users-in-your-membership-site\\\/#mainImage\"},\"datePublished\":\"2019-11-27T09:14:35-05:00\",\"dateModified\":\"2019-11-27T09:18:52-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"es-ES\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>How to Force Logout All Users in Your Membership Site<\/title>\n\n","aioseo_head_json":{"title":"How to Force Logout All Users in Your Membership Site","description":"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.","canonical_url":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/","robots":"max-image-preview:large","keywords":"force logout users,,force logout,logout users,security","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#blogposting","name":"How to Force Logout All Users in Your Membership Site","headline":"How to Force Logout All Users in Your Membership Site","author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-FT.jpg","width":1100,"height":733},"datePublished":"2019-11-27T09:14:35-05:00","dateModified":"2019-11-27T09:18:52-05:00","inLanguage":"es-ES","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#webpage"},"articleSection":"How To, force logout, logout users, security"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/es","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/category\/how-to-2\/#listItem","name":"How To"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/category\/how-to-2\/#listItem","position":2,"name":"How To","item":"https:\/\/memberpress.com\/es\/blog\/category\/how-to-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#listItem","name":"How to Force Logout All Users in Your Membership Site"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#listItem","position":3,"name":"How to Force Logout All Users in Your Membership Site","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/category\/how-to-2\/#listItem","name":"How To"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/es\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/es\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/#author","url":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/","name":"Joe Fylan","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/8efbb5b67aecb906b5f72f49bd070141.jpg?ver=1775748485"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#webpage","url":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/","name":"How to Force Logout All Users in Your Membership Site","description":"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.","inLanguage":"es-ES","isPartOf":{"@id":"https:\/\/memberpress.com\/es\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-FT.jpg","@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#mainImage","width":1100,"height":733},"primaryImageOfPage":{"@id":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/#mainImage"},"datePublished":"2019-11-27T09:14:35-05:00","dateModified":"2019-11-27T09:18:52-05:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/es\/#website","url":"https:\/\/memberpress.com\/es\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"es-ES","publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"}}]},"og:locale":"es_ES","og:site_name":"MemberPress","og:type":"article","og:title":"How to Force Logout All Users in Your Membership Site","og:description":"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.","og:url":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-FT.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-FT.jpg","og:image:width":1100,"og:image:height":733,"article:published_time":"2019-11-27T16:14:35+00:00","article:modified_time":"2019-11-27T16:18:52+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"How to Force Logout All Users in Your Membership Site","twitter:description":"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-FT.jpg"},"aioseo_meta_data":{"post_id":"20039","title":null,"description":"Find out how to force logout all users in your membership site by using a WordPress plugin or editing the wp-config.php file directly.","keywords":[{"label":"force logout users,","value":"force logout users,"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2025-10-09 18:12:29","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":null,"ai":null,"created":"2020-12-21 16:17:43","updated":"2026-03-03 15:06:00"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\/blog\/category\/how-to-2\/\" title=\"How To\">How To<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to Force Logout All Users in Your Membership Site\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/es"},{"label":"How To","link":"https:\/\/memberpress.com\/es\/blog\/category\/how-to-2\/"},{"label":"How to Force Logout All Users in Your Membership Site","link":"https:\/\/memberpress.com\/es\/blog\/how-to-force-logout-all-users-in-your-membership-site\/"}],"app_bookmark":{"bookmark_id":0,"is_bookmarked":false,"bookmark_date":0},"comments_count":"0","content_native":[{"type":"core\/paragraph","render":"<p>WordPress is ideal for creating membership websites as the software already has good built-in support for handling multiple logged in users. Then, by installing a <a href=\"https:\/\/memberpress.com\/features\/\">reputable membership plugin<\/a>, you can enhance this functionality to control how those users get access to your site, which content they can view, and a lot more.<\/p>","content":[{"type":"text","data":"WordPress is ideal for creating membership websites as the software already has good built-in support for handling multiple logged in users. Then, by installing a <a href=\"https:\/\/memberpress.com\/features\/\">reputable membership plugin<\/a>, you can enhance this functionality to control how those users get access to your site, which content they can view, and a lot more."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>However, if there comes a time when you need to force logout all users in your membership site, you\u2019ll soon discover that this functionality isn\u2019t present in the core WordPress software. So if you suspect that unauthorized users might be logged into your site, or you need to restrict access to your membership content before updating it, by default there\u2019s not much you can do through the WordPress dashboard to force those users to log out.<\/p>","content":[{"type":"text","data":"However, if there comes a time when you need to force logout all users in your membership site, you\u2019ll soon discover that this functionality isn\u2019t present in the core WordPress software. So if you suspect that unauthorized users might be logged into your site, or you need to restrict access to your membership content before updating it, by default there\u2019s not much you can do through the WordPress dashboard to force those users to log out."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Thankfully, as you\u2019re about to see in this guide, it's relatively easy to force logout all users in your WordPress membership site by either installing a free plugin or taking a more hands-on approach to get the job done.<\/p>","content":[{"type":"text","data":"Thankfully, as you\u2019re about to see in this guide, it's relatively easy to force logout all users in your WordPress membership site by either installing a free plugin or taking a more hands-on approach to get the job done."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>But before we get to how you can force all, or some, of your members to log out of your site, here\u2019s a quick look at why you might want to do this in the first place.<\/p>","content":[{"type":"text","data":"But before we get to how you can force all, or some, of your members to log out of your site, here\u2019s a quick look at why you might want to do this in the first place."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\">Why Force Logout All Users in Your Membership Site<\/h2>","content":"Why Force Logout All Users in Your Membership Site","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/paragraph","render":"<p>There are many reasons why you might want to force all of the users in your membership site to logout. <\/p>","content":[{"type":"text","data":"There are many reasons why you might want to force all of the users in your membership site to logout. "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">Dealing with Security Issues<\/h3>","content":"Dealing with Security Issues","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>Perhaps one of the most common scenarios is if you suspect your site has been hacked or its security has been compromised in some way. By using the WPForce Logout plugin that we look at later on in this guide, you can see exactly who is logged into your site, and then if necessary, individually force logout any of those users.<\/p>","content":[{"type":"text","data":"Perhaps one of the most common scenarios is if you suspect your site has been hacked or its security has been compromised in some way. By using the WPForce Logout plugin that we look at later on in this guide, you can see exactly who is logged into your site, and then if necessary, individually force logout any of those users."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">Changing Registration Policies<\/h3>","content":"Changing Registration Policies","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>Another reason why you might want to force all of your users to logout is if you\u2019ve updated the security of your membership site. If you\u2019ve now started requiring all members or users to confirm their email address before being able to log in, but have users who've already logged in, prior to this change, you can now force logout those users, by following the advice in this guide,  and require them to confirm their email before being able to log in again.<\/p>","content":[{"type":"text","data":"Another reason why you might want to force all of your users to logout is if you\u2019ve updated the security of your membership site. If you\u2019ve now started requiring all members or users to confirm their email address before being able to log in, but have users who've already logged in, prior to this change, you can now force logout those users, by following the advice in this guide,  and require them to confirm their email before being able to log in again."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">Updating Your Site and Its Content<\/h3>","content":"Updating Your Site and Its Content","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>If you\u2019re about to update your membership site, by adding more content or perhaps changing its design, then you might want to force logout all users before starting work. Doing so will prevent them from experiencing any issues while you are working on your website.<\/p>","content":[{"type":"text","data":"If you\u2019re about to update your membership site, by adding more content or perhaps changing its design, then you might want to force logout all users before starting work. Doing so will prevent them from experiencing any issues while you are working on your website."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">Temporarily Closing Your Membership Site<\/h3>","content":"Temporarily Closing Your Membership Site","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>If there\u2019s another reason why you need to temporarily close your membership site or restrict access, then knowing how to force all of your users to log out will enable you to ensure that there isn\u2019t anyone who still has access to your site and its content.<\/p>","content":[{"type":"text","data":"If there\u2019s another reason why you need to temporarily close your membership site or restrict access, then knowing how to force all of your users to log out will enable you to ensure that there isn\u2019t anyone who still has access to your site and its content."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">Removing Inactive Members<\/h3>","content":"Removing Inactive Members","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>Finally, if a member cancels their subscription or their membership is terminated for some other reason, you can force log them out to end their session and prevent them from accessing your members-only content.<\/p>","content":[{"type":"text","data":"Finally, if a member cancels their subscription or their membership is terminated for some other reason, you can force log them out to end their session and prevent them from accessing your members-only content."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\">How to Force Logout All Users of Your WordPress Membership Site<\/h2>","content":"How to Force Logout All Users of Your WordPress Membership Site","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/paragraph","render":"<p>As you\u2019re using WordPress for your membership site, you can easily force the log out of all of your users -- or just some of them -- in a few clicks by using a purpose-built plugin. <\/p>","content":[{"type":"text","data":"As you\u2019re using WordPress for your membership site, you can easily force the log out of all of your users -- or just some of them -- in a few clicks by using a purpose-built plugin. "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>In this guide, as well as showing you how to force your logged-in users to log out with a plugin, we\u2019ll demonstrate how to do it manually, just in case you\u2019d rather not install another plugin on your WordPress website. <\/p>","content":[{"type":"text","data":"In this guide, as well as showing you how to force your logged-in users to log out with a plugin, we\u2019ll demonstrate how to do it manually, just in case you\u2019d rather not install another plugin on your WordPress website. "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>However, if you think you\u2019ll be forcing your members to logout on multiple occasions, using the recommended plugin is the most convenient method.<\/p>","content":[{"type":"text","data":"However, if you think you\u2019ll be forcing your members to logout on multiple occasions, using the recommended plugin is the most convenient method."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">How to Force Logout Your WordPress Users with a Plugin<\/h3>","content":"How to Force Logout Your WordPress Users with a Plugin","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>When it comes to choosing a plugin that'll enable you to force logout your membership site users, <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/wp-force-logout\/\" target=\"_blank\">WPForce Logout<\/a> is the obvious choice. Not only is this plugin free to use but it also has impressive five out of five-stars rating (albeit from only six reviews).<\/p>","content":[{"type":"text","data":"When it comes to choosing a plugin that'll enable you to force logout your membership site users, <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/wp-force-logout\/\" target=\"_blank\">WPForce Logout<\/a> is the obvious choice. Not only is this plugin free to use but it also has impressive five out of five-stars rating (albeit from only six reviews)."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-full\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin.png\" alt=\"WPForce Logout Plugin\" class=\"wp-image-20040\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin.png","data":{"alt":"WPForce Logout Plugin","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Add-Plugin.png"},"style":{"width":1600,"height":900,"align":"left","parent_style":{},"sizeSlug":"full"}},{"type":"core\/paragraph","render":"<p>As this plugin is freely available, it can be installed directly from inside your WordPress dashboard. To add it to your site, simply log in to your WordPress admin area and click on the Add New item from the Plugins menu on the left side of your dashboard. From there, enter WPForce Logout into the search box, and then click on the Install Now and Activate buttons.<\/p>","content":[{"type":"text","data":"As this plugin is freely available, it can be installed directly from inside your WordPress dashboard. To add it to your site, simply log in to your WordPress admin area and click on the Add New item from the Plugins menu on the left side of your dashboard. From there, enter WPForce Logout into the search box, and then click on the Install Now and Activate buttons."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Once the plugin is running on your website, you can see which of your members or users are currently logged in to your site from the WordPress Users screen inside your dashboard.<\/p>","content":[{"type":"text","data":"Once the plugin is running on your website, you can see which of your members or users are currently logged in to your site from the WordPress Users screen inside your dashboard."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-full\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users.png\" alt=\"View logged in users\" class=\"wp-image-20041\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users.png","data":{"alt":"View logged in users","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-View-Users.png"},"style":{"width":1600,"height":691,"align":"left","parent_style":{},"sizeSlug":"full"}},{"type":"core\/paragraph","render":"<p>From the WordPress Users screen you now force logout all users on your membership site or logout individual users. You can also logout multiple users at the same time by checking the boxes next to their details, selecting Logout from the Bulk Actions dropdown menu, and then pressing the Apply button.<\/p>","content":[{"type":"text","data":"From the WordPress Users screen you now force logout all users on your membership site or logout individual users. You can also logout multiple users at the same time by checking the boxes next to their details, selecting Logout from the Bulk Actions dropdown menu, and then pressing the Apply button."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-full\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users.png\" alt=\"Log out multiple users\" class=\"wp-image-20042\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users.png","data":{"alt":"Log out multiple users","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Multiple-Users.png"},"style":{"width":1600,"height":455,"align":"left","parent_style":{},"sizeSlug":"full"}},{"type":"core\/paragraph","render":"<p>Once you\u2019ve logged out one or more users, their status will change to Offline and they will have to log in to your membership site again in order to access your protected content.<\/p>","content":[{"type":"text","data":"Once you\u2019ve logged out one or more users, their status will change to Offline and they will have to log in to your membership site again in order to access your protected content."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">How to Force Logout All Users Without Using a Plugin<\/h3>","content":"How to Force Logout All Users Without Using a Plugin","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>If you don\u2019t want to use a plugin, perhaps you only need to force logout all your users once, or you\u2019re just curious to know how it\u2019s done, this part of our guide will explain the process for doing it in a more manual way. For this to work, you will need access to the files on your hosting server, with the ability to edit the wp-config.php file from your WordPress installation.<\/p>","content":[{"type":"text","data":"If you don\u2019t want to use a plugin, perhaps you only need to force logout all your users once, or you\u2019re just curious to know how it\u2019s done, this part of our guide will explain the process for doing it in a more manual way. For this to work, you will need access to the files on your hosting server, with the ability to edit the wp-config.php file from your WordPress installation."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Two common ways to access this file include accessing your server space via the File Manager of cPanel -- or another type of control panel software \u2013 provided by your web host or via FTP software. To find out how to get this access, you\u2019ll need to refer to the documentation supplied by your choice of web host.<\/p>","content":[{"type":"text","data":"Two common ways to access this file include accessing your server space via the File Manager of cPanel -- or another type of control panel software \u2013 provided by your web host or via FTP software. To find out how to get this access, you\u2019ll need to refer to the documentation supplied by your choice of web host."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-full\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel.png\" alt=\"cPanel\" class=\"wp-image-20043\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel.png","data":{"alt":"cPanel","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel.png"},"style":{"width":1600,"height":741,"align":"left","parent_style":{},"sizeSlug":"full"}},{"type":"core\/paragraph","render":"<p>Once you know how to access the files on your web server, you\u2019ll need to find the wp-config.php file that\u2019s located inside the public_html folder of your website\u2019s root directory.<\/p>","content":[{"type":"text","data":"Once you know how to access the files on your web server, you\u2019ll need to find the wp-config.php file that\u2019s located inside the public_html folder of your website\u2019s root directory."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-full\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager.png\" alt=\"cPanel File Manager\" class=\"wp-image-20044\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager.png","data":{"alt":"cPanel File Manager","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-cPanel-File-Manager.png"},"style":{"width":1600,"height":900,"align":"left","parent_style":{},"sizeSlug":"full"}},{"type":"core\/paragraph","render":"<p>Once you\u2019ve found the file, you\u2019ll need to open it for editing. First, though, it\u2019s recommended that you back up the file, either by creating a copy of it or downloading it to your computer.<\/p>","content":[{"type":"text","data":"Once you\u2019ve found the file, you\u2019ll need to open it for editing. First, though, it\u2019s recommended that you back up the file, either by creating a copy of it or downloading it to your computer."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>If you are accessing wp-config.php via the cPanel File Manager, you can right-click on the file, and then select Edit from the menu.<\/p>","content":[{"type":"text","data":"If you are accessing wp-config.php via the cPanel File Manager, you can right-click on the file, and then select Edit from the menu."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-full\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu.png\" alt=\"File Manager Menu\" class=\"wp-image-20045\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu.png","data":{"alt":"File Manager Menu","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Edit-Menu.png"},"style":{"width":1600,"height":857,"align":"left","parent_style":{},"sizeSlug":"full"}},{"type":"core\/paragraph","render":"<p>Once you\u2019re editing the wp-config.php file, you\u2019ll be able to change the lines that relate to the authentication of the logged in users. Doing so will force logout all of the users in your membership site.<\/p>","content":[{"type":"text","data":"Once you\u2019re editing the wp-config.php file, you\u2019ll be able to change the lines that relate to the authentication of the logged in users. Doing so will force logout all of the users in your membership site."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>To find the relevant part of the wp-config.php file, search for Authentication. This will take you to this part of the file:<\/p>","content":[{"type":"text","data":"To find the relevant part of the wp-config.php file, search for Authentication. This will take you to this part of the file:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-full\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication.png\" alt=\"Keys\" class=\"wp-image-20046\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication.png","data":{"alt":"Keys","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/11\/Force-Logout-All-Users-Authentication.png"},"style":{"width":1600,"height":556,"align":"left","parent_style":{},"sizeSlug":"full"}},{"type":"core\/paragraph","render":"<p>Replacing these keys in the wp-config.php file with new ones will force logout all users on your WordPress website. To get new keys, visit the site mentioned in the file: <a href=\"https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/<\/a><\/p>","content":[{"type":"text","data":"Replacing these keys in the wp-config.php file with new ones will force logout all users on your WordPress website. To get new keys, visit the site mentioned in the file: <a href=\"https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/<\/a>"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>There, you\u2019ll find a new set of keys that you can copy and then paste into your wp-config.php file to replace the existing ones. After saving the file, all of the logged-in users will be logged out.<\/p>","content":[{"type":"text","data":"There, you\u2019ll find a new set of keys that you can copy and then paste into your wp-config.php file to replace the existing ones. After saving the file, all of the logged-in users will be logged out."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>As long as their accounts are still active on your site, those users will be able to log in again. However, if you are working on your website and want to prevent anyone apart from yourself from logging in, you can do so with a plugin like <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/disable-login\/\" target=\"_blank\">Disable Login<\/a>.<\/p>","content":[{"type":"text","data":"As long as their accounts are still active on your site, those users will be able to log in again. However, if you are working on your website and want to prevent anyone apart from yourself from logging in, you can do so with a plugin like <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/disable-login\/\" target=\"_blank\">Disable Login<\/a>."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\">Final Thoughts<\/h2>","content":"Final Thoughts","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/paragraph","render":"<p>You now know two different ways to force logout all users in your membership site.<\/p>","content":[{"type":"text","data":"You now know two different ways to force logout all users in your membership site."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Whether you choose to <a href=\"https:\/\/wordpress.org\/plugins\/wp-force-logout\/\" target=\"_blank\" rel=\"noreferrer noopener\">use a plugin<\/a> or decide to edit the wp-config.php file, it\u2019s very easy to log out your users.<\/p>","content":[{"type":"text","data":"Whether you choose to <a href=\"https:\/\/wordpress.org\/plugins\/wp-force-logout\/\" target=\"_blank\" rel=\"noreferrer noopener\">use a plugin<\/a> or decide to edit the wp-config.php file, it\u2019s very easy to log out your users."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p><em>If you have any questions about this, please leave a comment below. <\/em><\/p>","content":[{"type":"text","data":"<em>If you have any questions about this, please leave a comment below. <\/em>"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}}],"app_access":{"can_access":true,"restrict_message":null},"_links":{"self":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/posts\/20039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/users\/2122"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/comments?post=20039"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/posts\/20039\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/media\/20048"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/media?parent=20039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/categories?post=20039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/tags?post=20039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}