[wp-trac] [WordPress Trac] #23295: Improved login expiration warning

WordPress Trac noreply at wordpress.org
Mon Jul 15 17:23:58 UTC 2013

#23295: Improved login expiration warning
 Reporter:  mintindeed                           |       Owner:
     Type:  task (blessed)                       |      Status:  new
 Priority:  normal                               |   Milestone:  3.6
Component:  Autosave                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  autosave-redo has-patch ui-feedback  |

Comment (by azaozz):

 Replying to [comment:75 wpdavis]:
 > Idea: What if we had the heartbeat on all form submits in the admin?
 Delay the form submit until we're sure the person is logged in. If they're
 not, show the modal and submit the form after a successful login (or
 prompt them to resubmit).

 Yeah, a "pre-flight" approach would work when submitting a form although
 it may delay the form submission a lot. It wouldn't need heartbeat, can be
 implemented with `$('form').on('submit', function(){ check logged in });`.

 One problem is that it won't catch XHRs and there's no good way to plug
 into all of these requests to see if the user is still logged in. On the
 plus side a pre-flight will catch when connection is down or the server is
 busy/not responding.

Ticket URL: <http://core.trac.wordpress.org/ticket/23295#comment:81>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list