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
- Google Maps API throws “Uncaught ReferenceError: google is not defined” only when using AJAX
- Initialize TinyMCE editor / visual editor after AJAX insert
- WP-AJAX vs WP REST API: What to use for requests to the website from outside?
- SSL breaks customizer: page isn’t returned from ajax
- Using Nonces for AJAX that only retrieves data
- How to verify nonce from Bulk/Quick Edit in save_post?
- 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
- Problems with creating sortable sections in customizer
- 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
- How to make ajax content indexable by search engines?
- Ajax requests with different WordPress Address and Site Address setup
- Conditional action hooks
- 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 make get_theme_mod work with AJAX in the customizer preview
- How to declare a JS variable in an AJAX call
- is_page() conditional not working inside an AJAX function
- Fatal error: Call to undefined function get_post() with ajax
- how to send Ajax request in wordpress backend
- wp_create_nonce() in REST API makes user->ID zero
- ajax nonce verification failing
- Plugin: AJAX query external API to sync to tables
- admin-ajax.php ” Missing argument 2″ warning
- Update get_pages using ajax on form select change
- splitting the URL using jQuery
- How do I get reusable blocks via frontend REST API?
- Is there builtin way to use protected AJAX endpoint?
- How to create an ajax endpoint without js?
- WP Ajax never returning any data / calling action
- How to load content from many posts on a page, only if needed
- Making an ajax request from a different domain
- WordPress Settings api data not sanitized if i use ajax
- Admin ajax add tag callback
- Stop auto load wp-admin admin-ajax.php
- wp_enqueue_script() doesn’t work with AJAX
- Dynamically add more fields/remove last field in a form
- Ajax Request for both logged and non logged users
- AJAX call inside plugin class not triggering
- WordPress Heartbeat API cannot parse data
- Cache plugins and ajax nonce verification
- Ajax function on #publish only saves as draft – how to make it publish?
- AJAX call broken after actualization
- WP_Ajax Hook doesn’t execute this PHP code
- Ajax function not returning any results
- post values to custom post type which has advanced custom fields
- wp_mail doesn’t work when logged in?
- How to continuously send feedback via AJAX responses to my client?
- Need help with Access-Control-Allow-Origin
- Send email via ajax
- wp_ajax handler with multiple class instances
- admin-ajax.php (aborted) error when using jQuery.get
- Storing temporary data for a custom post type
- Load page HTML content through AJAX
- Not getting an ajax readystatechange on my page
- Display full WordPress post under search form using AJAX
- Ajax callback not work
- add class to element if user is not logged in [closed]
- Strange admin-ajax / CSS / $_SESSION issue
- WordPress Select Option Load Custom Fields
- Add ajax to plugin in admin area
- Search live Ajax
- jQuery.post returns 0
- Ajax login fails: script sets cookies, but is_user_logged_in() returns false
- Using wp_send_json_success instead of $result[‘message’], die, etc
- admin-ajax error 400
- wordpress admin ajax trash_comment
- Ajax call on class returns old data
- delete post meta data in array WordPress
- How to trigger lost password email using REST API?
- Display post thumbnail after clicking on post id with AJAX
- Error while submitting form using AJAX and php
- How to fetch meta_value and meta_key in matrix after ajax request by post_id
- Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC
- Is it a good idea to init ajax functions only while ‘DOING_AJAX’
- register_setting and AJAX?
- ajax response is 0 instead of ‘script’ [duplicate]
- A refreshless WordPress website
- Dynamic dependent select box getting null value
- get_template_part() does not render after the ajax request
- Add “load more” functionality to an AJAX response
- weird Internal Server Error – no error log produced
- Why are the most recent posts not appearing in a fetch request, unless I’m logged in?
- Successful ajax call returns lots of whitespace and text of code with 0
- How to submit a button automatically after every scheduled hours?
- At what stage does wp_ajax hooks gets applied during WordPress request?