PMC Post Savior

Plugin Banner

PMC Post Savior

by Gabriel Koen

Download
Description

PMC Post Savior checks every 15 seconds to see if you’re still logged in. If you are not, it presents a pop-up window so that you can log back in without losing your work.

Github: https://github.com/Penske-Media-Corp/pmc-post-savior

WordPress.org: https://wordpress.org/extend/plugins/pmc-post-savior/

Image by The Library of Congress. See link for details.

  1. Upload the pmc-post-savior folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  1. PMC Post Savior notices that your login has expired.

    PMC Post Savior notices that your login has expired.

  2. PMC Post Savior presents a pop-up that lets you login again.

    PMC Post Savior presents a pop-up that lets you login again.

Why don’t you just read the cookies via javascript?

Since the auth cookies are not visible to javascript, this uses AJAX to communicate with WordPress to check the login cookies.

Why 15 seconds?

Because 1 minute is too long.

1.0

  • Fix issue where login prompt didn’t show in full-screen edit mode.
  • No longer instantiate into a global. Unnecessary since the class is already a singleton. Props JJJ.

0.9

  • Initial beta release.
Back to top