The reason you’re not finding anything is because WordPress does not use any form of “sessions”. Login status information is not saved, or retrieved.
Logging into WordPress basically sets a cookie in your browser which is a single authentication point. It is the equivalent of a username and password, with encryption and a timeout, all in one cookie. Well, two cookies.
Regardless, WordPress is stateless. If you want to log somebody out when they switch to another location, you need code above and beyond anything WordPress core itself. Which probably means custom code for your use case.
So, define your case in great detail, and maybe somebody can help you devise a solution. Best scenario.
Related Posts:
- How can I get logged in user’s session data from admin-ajax?
- WordPress Nonce Issue for Ajax Login and Logout
- Ajax function returns -1
- WP_Session not acting with AJAX
- PHP session when called wp_ajax_nopriv
- Session variables lost during Ajax calls – WordPress – Sage Starter Theme
- SHORTINIT and sessions
- Logout and redirect WordPress user id without he refresh the page
- Using Ajax with a Class file
- SSL breaks customizer: page isn’t returned from ajax
- Stop admin-ajax?
- Is it safe to assume that a nonce may be validated more than once?
- How to verify nonce from Bulk/Quick Edit in save_post?
- store/cache ajax sent data to avoid repeated request
- How to implement AJAX post navigation into WordPress?
- wp_ajax_[service] returning 0
- Trying to load content of a post via AJAX
- Insert Post using Ajax
- How can I automatically login using a URL?
- Run again current query via ajax but changing a var
- Problems with creating sortable sections in customizer
- Quick Edit: Selected Custom Taxonomy Not Refreshing After Save
- Is it OK to use a system cron to trigger a function hooked into the AJAX API
- Filter WP user acf field by ajax
- Ajax Request not coming back to class
- wp_verify_nonce always returns false when logged in as admin
- How to make ajax content indexable by search engines?
- Ajax requests with different WordPress Address and Site Address setup
- AJAX requests broken due to HTTPS for wp-admin
- Custom Connect to Facebook, problem logging in/logging out
- query vars in url work but not in ajax call
- is_home doesn’t affect content
- Is it safe to use $_POST directly in my plugin instead of using admin-ajax.php to receive data from ajax?
- How to declare a JS variable in an AJAX call
- is_page() conditional not working inside an AJAX function
- jQuery Ajax passing empty parameters to my function?
- admin-ajax.php slows down, but cant figure out which plugin
- Convert this relative path to absolute
- Load WP content with ajax less server demanding and faster than normal page loading?
- how to send Ajax request in wordpress backend
- admin-ajax.php slow website, how to fix
- WP Admin AJAX Security – using POST to include a relative URL
- Admin-ajax.php 400 error
- ajax nonce verification failing
- admin-ajax.php ” Missing argument 2″ warning
- Update get_pages using ajax on form select change
- Is there builtin way to use protected AJAX endpoint?
- How to create an ajax endpoint without js?
- get_queried_object_id in AJAX
- Should I check for privileges before hooking into `wp_ajax_$handle` or after?
- How to load content from many posts on a page, only if needed
- Making an ajax request from a different domain
- Images loading over http instead of https
- wp_enqueue_script() doesn’t work with AJAX
- Pagination Using ajax
- wp_ajax_ works fine but wp_ajax_nopriv_ returns HTML and not calling function
- Why is wp_localize_script returning false?
- Ajax call with javascript in post content (not enqueued)
- Change header.php after ajax call
- What’s the latest I can hook into wp_ajax_%?
- Retrieve JSON file from JS trough php
- Nonce doesn’t validate in nopriv call
- WordPress – admin-ajax.php returns 502 Bad Gateway [closed]
- Using admin-ajax prevents regular php form submission
- How to use ajax to get multiple outputs?
- Admin-ajax.php 400 error in custom theme
- Why does check_ajax_referer give a 403 error on https websites?
- WordPress is creating nonce as a logged in user but verifying it incorrectly
- ajax refresh to display new posts
- wp ajax execution time aborted 30 sec
- wp_ajax action is not run when ajax trigger
- Replace link with form to pass variables to javascript / ajax
- Can I use application/json content type in WordPress
- Admin Ajax always return 0
- Ajax call undefined index
- Is there a hook that fires after an ajax call?
- Dynamic Twitter card images
- How to pass value from ajax to php in no conflict mode?
- What is the relationship between UFW (firewall) being enabled and cron job running?
- error_log() not working within wp_ajax_{action} handler
- Is there a way to add ajax hooks without editing the functions.php file?
- Implement AJAX to fetch pages or posts content in a WordPress custom theme
- Hook after all metadata are set is triggering several time
- check_ajax_reffer not working when logged
- Ajax show custom post data form & script
- Portfolio list view after clicking back button
- about load more ajax
- How to use add_action(‘wp_ajax_[action name]’,…) for a specific page with condition?
- AJAX save options inside class
- How to test if in dashboard, bypassing Ajax quirk
- Load more posts with Ajax and masonry
- Caching for logged in user and Ajax update
- update_user_meta updates to a wrong ID
- WordPress sound bell when new data will add
- AJAX function needed (toggle text) [closed]
- Call pre_get_posts inside ajax
- Translating wordpress foreach to ajax
- How to add a “Load more” button for the comment section in WordPress?
- How does the security of admin_ajax.php work?
- No full page reload when navigating from page A to page B: is this possible with WordPress?