I’ve discovered the following stuff.
This kind of login is called internally Interim. It works thanks to the continuous polling offered by the Heartbeat API. The prefix of the expired session functionality is wp-auth-check and the important bit for me was a little script at /wp-includes/js/wp-auth-check.js.
When the auth check request is sent to the server, the response will contain a true if the session is active or a false if it has expired. Based on that, the script decides if it has to show the modal login or not. Given that all is managed by events, it is sufficient to trigger one like this
jQuery(document).trigger('heartbeat-tick.wp-auth-check', [ {'wp-auth-check': false} ])
to make the dialog box appear.
Related Posts:
- Preventing session timeout
- How reduce wordpress login session timeout time?
- Removing username from the ‘wordpress_logged_in’ cookie
- Disable WordPress 3.6 idle logout / login modal window / session expiration
- How to pass users back and forth using session data?
- How to fake a WordPress login?
- Does wp_logout_url() destroy a session? (Logging out question)
- How can I test the login for an expired session?
- How do I extend auto logout on idle OR redirect inline popup
- How to get login data (session) outside WordPress?
- how to logout user on browser tab or window closes
- Custom Connect to Facebook, problem logging in/logging out
- How does WordPress handle sessions?
- WordPress as webapp login session
- Session Experies and Get Logged Out Within Few Minutes
- Share WordPress login info with other PHP app
- One time login on 2 different WordPress sites
- End session screen not close automatically after login
- wordpress login loop and session problem
- Get WordPress logged in username from root domain when WP is installed in a subfolder
- User not logged first time I open the homepage
- How to limit user to login only once per session
- How to prefill WordPress registration with social details
- Redirect user using the ‘wp_login_failed’ action hook if the error is ’empty_username’ or ’empty_password’
- wp_signon() does not authenticate user guidance needed
- Avoid to load default WP styles in login screen
- Integrate recaptcha and wp_signon – what is needed?
- Programmatically log in a wordpress user
- Change sign-on URLs for security purposes
- Can’t stop hacker trying to get admin access in WordPress blog after trying many ways [closed]
- Hook for fail and successful login actions
- How does WordPress track that a certain User is Logged-In
- Mobile users redirected to a different page on login unless linked to another post
- How can i add validation to this login form with out it redirecting to the wp-login.php page
- advance membership managment
- Logins through alias
- Remove WordPress Login Animation
- Redirect users to a front end wp login page
- Redirecting or displaying a message on first login
- Deny a user role to log in after register
- Force Users to Login – loop problem
- Is there a better way than checking user is logged in to show or hide adminbar?
- How do I replace “Username” in the WordPress login form?
- How can I do a URL redirection when an user uses wrong login details?
- Change login_message using title
- Changing WP login credential [closed]
- Index page and random posts needs a forced refresh in order to show new content
- How to change wordpress Log In text
- Can I (and should I) change the login-URL from functions.php?
- WordPress Cant access wp-login.php
- How to remove ‘wordpress…’ text from page titles in tabs
- Using gettext to translate wp-login.php can’t translate `Back to` into other language
- Code for Log Out Button Yields Strange URL
- Display first name instead of username
- How can I make a login just like on wordpress.org?
- How to Prevent Brute Force Attack on WordPress
- How can I insert wordpress login screen on a different domain?
- how do i change my website facebook login button to another text immediately user login? [closed]
- Why there is a 302 status when my account and password are right?
- 503 Login WordPress [closed]
- Password recovery URL has error – but not found in code or db
- Cannot Get User id after login success in file wp_login.php
- This webpage has a redirect loop issue
- authenticate user without redirecting
- Create front end member login
- Logging in to the frontend works correctly but not for WP-Admin
- I can’t access my wp-admin dashboard
- Unable to execute Ajax request, status code 400
- Cannot login to WordPress on one device: login refreshes/an error was encountered whilst trying to authenticate
- Updated : how to make email optional while user registration using default wordpress form
- I can’t log in to `wp-admin` after changing my domain
- My wordpress site crashes when I login!
- Unable to login with email address as the username – WordPress
- Bypass login page
- Using WordPress login for a non word-press website
- Using is_user_logged_in() to lock down whole site
- After moving WordPress to its own directory, login doesn’t work
- WordPress login is not showing , there is warning?
- WordPress Redirect After logging
- Issue logging in from second computer
- Login problem with https
- WordPress auto login user after registration only from a specific page
- User login without username, only password
- Opening protected page with cookie?
- Login user after registration programmatically
- Directory authentication initially succeeded, but no valid profile was found (“get entries” procedure)
- External Authentication
- Trim the repeated value in URL
- Warning: session_start(): Cannot send session cookie – headers already sent by
- how to manage Session in WordPress using custom login?
- Login to wordpress with filezilla client [closed]
- I can’t login to wordpress dashboard without SSH
- Member Area Login with Fail Message
- Username character requirements
- Users cannot log in using popup
- determine active user browser at the same time
- issue with my wp site after login
- How can I automatically change directory on ssh login?
- How to create a fully functional user registration in WordPress?
- How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?