Get latest Tips, Tricks, Hacks, Deals and Offers (FREE)

Signup now And Get latest Tips, Tricks, Hacks, Deals and Offers To Enhance Your Blogging Journey. Let Us Help You To Make You Better Around THe World Wide Web !

I will never give away, trade or sell your email address. You can unsubscribe at any time.


Why, When and How to Force Logout All Users in WordPress

Do you want to force logout all users in WordPress? If you suspect that your WordPress may be hacked or just need users to login again, then there is no default option to do that in WordPress. In this article, we will show you how to easily force logout all users in WordPress. Why and When You May Want to Force Log out All Users in WordPress? If you run a WordPress membership site or an LMS plugin, and you need all logged in users to re-login, then this tutorial is for you. You may want to do this for different reasons. For example, if you suspect that your WordPress site is hacked, then forcing logout will allow you to properly clean up your hacked WordPress site. Next, if you are using a membership or pay per view site and fear that users may be sharing their passwords to access content, then this method will come in handy. After logging them out, you can stop them from sharing passwords. Another scenario is that when you use a public computer or WiFi without using a VPN service. If you are not sure that you properly logged out, then this method will end all logged in sessions. That being said, let’s take a look at how to easily logout all users in WordPress. Force Log Out All WordPress Users For this tutorial, you will be editing WP Config file called wp-config.php. We highly recommend that you backup your wp-config.php file before making any changes to it. First you will need to connect to your website using FTP or via File Manager in cPanel. Once connected, you will find the wp-config.php file in your site’s root folder. You can right click and select edit to open the file in a text editor. Inside your wp-config.php file you will find a code block that would look like this: It is also possible that each of these lines just have ‘put your unique phrase here’ as the second parameter. These lines are called authentication keys and salts. To learn more about them see our guide on WordPress security keys. Next, you need to visit the WordPress Salts generator page. This page randomly creates new key strings that you can use in your wp-config.php file. ou need to replace your existing keys with the new ones that you just generated. Once done, make sure to save your changes and upload your wp-config.php file back to the server. Changing the salts will automatically log everyone out of your website, forcing them to relogin.
Read More >>>