You are typing ahead on your new blog post, nailing point after point, before you click save, aaand… WordPress has logged you out. Your last five paragraphs have been lost, and you’re grumpy.
Sometimes, WordPress seems to constantly log you out. It doesn’t matter how many times you have clicked “Remember me”. It can be incredibly frustrating when you just want to be able to work for five minutes uninterrupted.
This happened to me the other day and I set out to find the simplest way to fix the issue.
I found four reasons that could be the problem. It was the last issue on my list that helped me resolve it on my website, but you should go through all of them to find what works for you.
The first thing to check whenever something isn’t working on your website is whether or not any of the plugins are creating problems.
To check for faults, deactivate and reactivate each of your plugins in turn to see if the issue is caused by any of them.
If you go to Settings –> General settings in the left bar in your WordPress admin, you will see there is something called WordPress URL and Site Address.
Both fields have your website’s URL. They should both be exactly the same right including the www.
The www is technically a kind of sub domain, so it’s up to you if you want to use it.
You can choose freely between www.mysite.com or https://mysite.com.
The only thing that matters is that you choose the same version in both the WordPress URL and Site Address fields.
WPBeginner has a great article about the technicalities behind why WordPress logs you out, and how you can change this information by using a FTP client as well.
Clearing your cache can also resolve the issue. It’s different from browser to browser how you do it. In firefox you find it by going to history –> clear history.
Here you can choose from a list what to clear. Choose cache. Now that you’re at it, make sure to clear cookies as well…
Cookies can also create problems for your WordPress login. Clearing cookies from your browser can prevent WordPress from constantly logging you out.
Again, search how to do this in your browser.
This was the thing that proved to be the issue for me in the end.
I hope this blog post helped you find out what is causing the issue for you and how to fix it.