How to fix WordPress keeps logging out problem?
1.CHECK WORDPRESS URL & SITE URL:
Make sure that you have the same URL in your Site Address and WordPress Address fields in your WordPress settings. You need to choose either www or a non-www URL in the both fields.
In this method, you’ll have to manually deactivate all your plugins using an FTP client such as Filezilla. After deactivating the plugins you’ll have to activate them one at a time to identify the culprit plugin.
3.CLEAR CACHE AND BROWSER COOKIES
Try clearing cache and browser cookies. Cache and browser cookies often affect the performance of your WordPress website. Sometimes an old or expired cookie could override your recent login.
4.TRY RESTORING WEBSITES FROM PREVIOUS BACKUPS
If you have been creating regular backups of your website then restoring your website from previous backups might be a necessary solution. Use this method if the above three methods don’t work.