[wp-trac] [WordPress Trac] #51275: Auto logout looses your content if not saved
WordPress Trac
noreply at wordpress.org
Thu Sep 24 10:54:00 UTC 2020
#51275: Auto logout looses your content if not saved
------------------------------------+-----------------------
Reporter: cucocreative | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Login and Registration | Version: 5.5.1
Severity: normal | Resolution:
Keywords: | Focuses: ui
------------------------------------+-----------------------
Changes (by cucocreative):
* status: closed => reopened
* resolution: invalid =>
Comment:
I've just seen it again this morning on a site I've remained logged into
for a few days now.
Looking at the code from the modal, it includes the id "wp-auth-check"
which seems to be part of a function that check whether a user is still
logged in, for the heartbeat.
[https://developer.wordpress.org/reference/functions/wp_auth_check/]
also this
[https://developer.wordpress.org/reference/functions/wp_auth_check_html/]
appear to be the code for the modal box I'm seeing.
[[Image(http://www.cucodigital.co.uk/wp-auth-check.png)]]
The url in the modal includes "wp-login.php?interim-login=1". The variable
$interim_login seems to be set TRUE when the log-in session of a user
expires while they are working in the back end. In this case a message
asking to log in again appears.
The issue is not with the "Are you human" part but when you are auto
logged out when you are in the middle of editing a page - you loose any
unsaved work - it would be better to do an auto-save before logging you
out.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51275#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list