How often does WordPress kick you out of the admin dashboard? Whether you’re trying to moderate visitor comments, activate a plugin, or create new content, you’ll have to access the admin dashboard. You can enter your WordPress account’s username and password on the login page for the admin dashboard to access the admin dashboard and, thus, manage your website.
WordPress, however, may log you out of your website. You may enter the right username and password, but after a short period, WordPress will boot you back to the login page. By understanding why WordPress keeps logging you out of your website, you can prevent it from happening.
Not Ticking the ‘Remember Me’ Option
The login page for the admin dashboard features a “Remember me” option. Failure to tick this option may result in WordPress logging you out of your website.
Like most websites, WordPress leverages cookies to keep users logged in. When you log in to the admin dashboard, it will set a cookie on your computer. The cookie will authenticate you so that you can log back into your website without re-entering your username and password.
Cookies don’t last forever. Cookies set by WordPress are good for 48 hours by default. In other words, you’ll stay logged in to your website for two days. Ticking the “Remember me” option will extend the cookie duration to 14 days. You’ll only have to enter your username and password once every 14 days.
If your website has any caching plugins activated, you should clear your web browser’s cache. A caching plugin can reduce load times for visitors, but it may log you out of your website.
Caching plugins create local copies of pages. When a visitor loads a page for the first time, the visitor’s web browser will create a copy of it. Your web browser will create copies of pages that you visit as well, including the login page. If your web browser has an old, local copy of the login page, it may automatically use an expired cookie when you attempt to log in to your website.
Clearing your web browser’s cache will delete local copies of pages. It won’t affect the caching plugins on your website. Rather, clearing your web browser’s cache will remove any copies of outdated login pages so that they don’t prompt your web browser to use an expired cookie.
Deleted Browser Cookies
If you recently deleted your web browser’s cookies, you’ll have to log back in to your website. A cookie is what allows you to bypass the login page for the admin dashboard. It’s good for two to 14 days, depending on whether or not you tick the “Remember me” option. Deleting your web browser’s cookies, though, will remove this WordPress-based authentication cookie while subsequently forcing you to log back into your website.
You should still delete your web browser’s cookies on a regular basis. Neglecting to delete them will congest your computer’s storage drive with unnecessary bits of data. More importantly, failure to delete your web browser’s cookies may result in multiple WordPress-based authentication cookies.
Your web browser may have a valid cookie and an expired cookie for WordPress. If the expired cookie overrides the valid cookie, you may struggle to stay logged in to your website. Deleting all of your web browser’s cookies, of course, offers a quick and easy solution.
A URL mismatch can cause WordPress to log you out of your website. If the URL in the cookie doesn’t match that of the login page on which you enter your username and password, you may be automatically logged out of your website.
To determine whether a URL mismatch is to blame for your login woes, you’ll need to check your website’s URL settings in the admin dashboard. Click the “Settings” menu in the admin dashboard and select “General.” Near the top of this page are two URL fields: a WordPress address URL field and a site address URL field. Both fields should feature the exact same URL.
You’ll probably see your homepage URL in both fields. Subtle differences between these two fields may cause WordPress to log you out of your website. If one of the fields features a Hypertext Transfer Protocol (HTTP) URL and the other field features a Hypertext Transfer Protocol Secure (HTTPS) URL, for example, you can expect login problems.
You can use either a WWW URL or a plain URL in these two fields. Just remember to use a consistent format. If one of the fields features a WWW URL, avoid using a plain URL in the other field. Both fields should feature the same URL with the same prefix. If they are different, the cookie saved to your web browser may fail to keep you logged in to your website.
Plugin Authentication Error
A plugin authentication error may log you out of your website. Plugins leverage cookies for the same authentication purposes as WordPress. If a plugin is unable to read your web browser’s cookie, it may log you out of your website.
You can troubleshoot a plugin authentication error by disabling all plugins on your website, followed by reactivating them one at a time. After reactivating the first plugin, log in to your website to see if the problem persists. If you’re able to stay logged in, go ahead and reactivate the next plugin. Through process of elimination, you can find the plugin that’s responsible for the authentication error.
If the plugin is outdated, installing the latest version of it may resolve the authentication error. Some plugins, though, will simply conflict with other plugins or themes. If you’re experiencing an authentication error with a plugin, you may want to remove it from your website.
Don’t let WordPress kick you out of the admin dashboard. Maybe you forgot to tick the “Remember me” option on the login page, or perhaps there’s a URL mismatch with your website’s settings. Fortunately, you can fix problems such as these so that WordPress keeps you logged in to your website.