How to Solve WordPress Session Expired Problem

It is one of the quashing moment when you get logged out from your WordPress admin panel. People keep asking why “WordPress session timeout” to all the experts of WordPress. Yes, it is true. Even you can check out in any forum and people always suggest some common solutions. In this blog, you will get all the solutions to fix the error.

Methods to Remove WordPress Dashboard Keeps Logging Me Out Error

  • Deactivate the Plugins

Deactivating the plugins one by one is the common solution because sometimes plugins can conflict with WordPress. The cause can be its poor coding or bad compatibility with other plugin. The reason can be any of that so, you can deactivate the plugins from your admin panel to check any of them is not responsible for WordPress admin session timeout.

  • Clear All Browser Cookies

Sometimes, the problem can be browser cookies. As you know, WordPress uses cookies and the cookies get stored in the browser for every session.When you try to login to WordPress site, you might get WordPress timeout error because of the old cookies for any other login session. Just make all the browser cookies clear and then try again.

  • Empty the Cache Files

You can also try to login to the admin panel of WordPress after deleting the cache storage.

Best Solution of WordPress Keeps Logging Me Out Problem

If the above mentioned solution doesn’t work for you then you can try this method to resolve WordPress session timeout error.

You might be knowing very well that WordPress sets cookie in the browser to authenticate login session. It is only set for the WordPress URL which is stored in your settings section.The WordPress will not be able to authenticate your session if the URL you are accessing doesn’t match with the one which is in your WordPress settings.

wordpress session expried error

As you can view in the screenshot above, there are two different URL’s that is WordPress Address (URL) and Site Address (URL).

NOTICE: One has www and the other hasn’t.

You need to make sure that you have same URL both in your WordPress Address fields and Site Address in the WordPress settings. Simply meaning either you fill www or non-www URL in both fields.

Login to the WordPress dashboard and go to Settings >> General.

wordpress keeps logged out

You can update these fields only by editing the wp-config.php file.

Connect to your website with the help of FTP client and locate the wp-config.php file in the site’s root directory. Download and open it in any text editor.

Add the following code above the line That’s all, stop editing! Happy Blogging.

Define (‘wp_home’,’http://example.com’);
Define (‘wp_siteURL’,’http://example.com’);

Use the following code if you use www in URL.

Define (‘wp_home’,’http://www.example.com’);
Define (‘wp_siteURL’,’http://example.com’);

Replace example.com with the domain name you are using.

This is very common mistake done by us while putting different URLs. Simply, by changing and updating the URLs to the similar address, it will fix the WordPress admin keeps logging out error. If you continue with these incorrect settings, it may also result in so many redirect issue.

Conclusion

All the methods are mentioned in this article which will help you to resolve WordPress session keeps expiring. If your error will not solve by using these methods then you can write message in comment box. I hope this article will help you to fix the timeout error in WordPress.

0

Write a Comment