I Keep Getting A “Session Expired” Popup When Editing

I Keep Getting A “Session Expired” Popup When Editing

I Keep Getting A “Session Expired” Popup When Editing

Page Builder Sandwich regularly checks whether you are still logged in WordPress. This is performed to ensure that your changes will indeed be saved by the time you hit the save button. This is also used for post locking and autosaves.

We rely on the WordPress Heartbeat API in order to do our checks, and it in-turn relies on browser cookies and sessions. So if you keep getting those “session expired” popups while editing, there might be something hindering WordPress from tracking you properly. Here’re some stuff that you can do to solve this:

Empty Your Cache

If you have caching plugins installed, or DNS caching, or any form of caching, clear them. Also clear your browser cache. It’s possible that you are not being served the latest scripts for your site.

Clear Your Cookies

It’s also possible that your cookies have gotten corrupted, this can easily be solved by clearing your browser cookies from the settings of your browser. It’s usually near the option where you clear your browser’s cache.

Check Your Site URL Settings

Go to Settings > General and check your settings. Look for the settings for WordPress Address (URL) and Site Address (URL). The domains and protocols of those should match your actual domain. For example, if one has “http://” but you go to your site using “https://”, then the settings should read “https://”. Another common problem would be that one of those URLs has a “www” and one doesn’t.

These should match:

file jRzgrZO0et



To fix this, you can change the settings from Settings > General. If you cannot edit those settings, you can open up your FTP and edit the file wp-config.php, and add in the lines:

define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Afterwards, clear your cache & cookies and try again.

Make Sure The Heartbeat API Isn’t Disabled

Lastly, check if you have a plugin (or theme) that forcefully disables WordPress’ Heartbeat API. It’s very helpful and we would personally recommend that you keep it enabled.

Still need help? Contact Us

Share this page!


The Author

Contact Us