WordPress is the most popular CMS that are is used for creating websites. WordPress is used for creating any style of the website from a simple blog to a full-featured business website.
If you are facing issues that the WordPress keeps login out, then the steps provided in this tutorial provide you the best fixes for the login issue you were encounter.
Main causes:
The main cause is the browser cache when you try to login to your WordPress. It set a browser cookie which authenticates your login session. If there are any errors on those cookies, then you are unable to authenticate and it keeps you logging out.
To resolve such issues, please follow the below steps:
1) If you are continually logged out from your WordPress dashboard, then the most common reason is conflict in your URL settings. WordPress is always authenticate logged in users through browser cookies. If the WordPress URL and Site address are different, then it will be unable to authenticate your credentials and you will be logged out.
Login to your WordPress dashboard and make sure that you have set the WordPress Address (URL) and Site Address (URL) are exactly the same. You can check it from your WordPress Dashboard >> Settings >> General.
If there any differences, this could be the reason for this error.
For example, if one the URL is beginning with “https://” and the other uses “http://”, or one has WWW in front and the other doesn’t, then you would need to correct it, Both the URLs should be exactly same.
If you are unable to access the WordPress dashboard, then you can edit the WordPress Address (URL) and Site Address (URL) from the file wp-config.php
You can use FTP to the server and edit the mentioned file there.
define(‘WP_HOME’,’http://yoursite.com);
define(‘WP_SITEURL’,’http://yoursite.com);
2) Clearing the browser cache and cookies is another way to resolve this issue. Most of the log out issues are related to the browser cookies that are stored on your browser. You would need to clear the browser cache as well as the browser cookies to resolve this issue.
3) If the issue still persists, then try to deactivate the plugins on the WordPress website. You can manually deactivate all the plugins on your website using FTP client. After logging into FTP server, navigate to the public_html directory and then to the wp-content directory. Disable all plugins on the website. After deactivating the plugins, you’ll have to activate them one at a time to identify the culprit plugin.
4) Ensure that your WordPress site is permitted to save cookies on your browser. In some cases, your web server is disabled to accept cookies. When this happens, WordPress will be unable to save the cookies, which means you will be logged out again and again. To fix this, you would need to enable ‘Allow Site to Save and Read Cookie Data ‘on your web browser.
5) If the issue is still reoccurring after changing all the above settings, then you would need to restore the website from any of the working back-ups or contact us(your hosting provider) for restoration and everything should be working then.
If you need any further help, please do reach our support department.