How WordPress stores cookies (client-side, as @birgire stated):
https://codex.wordpress.org/WordPress_Cookies
I doubt this will ever work from a separate subdomain as the cookie domain is usually fully-qualified to the WordPress siteurl (someone feel free to correct me.)
If you were doing it with another app on the same domain, you’d need to make use of the wp_validate_auth_cookie() function (in wp-includes/pluggable.php) – that looks at $_COOKIES, generates a hash from the user’s database record and checks if it matches the cookie. If it does, you get their user ID back.
Related Posts:
- PHP 7.2 – Warning: count(): Parameter must be an array or an object that implements Countable
- Sticky and NON-Sticky sessions
- Session timeout in ASP.NET
- Authentication: JWT usage vs session
- How to use my own custom session value in WordPress?
- achieving login implementation without using sessions
- Destroy user sessions based on user ID
- Enable WordPress Sessions
- Share session between my site and WP blog [closed]
- How to get outside login data (session) in WordPress?
- Session problem in PHP – trying to create a simple CAPTCHA
- Multi-instance WordPress usingn Memcached to handle sessions requests login every time a requests is handled by a different server
- Would this be achieveable?
- Using session in WP without trouble with the API REST
- Re-use Nonce in Repeating Event Signup Buttons
- Plugin is attempting to start a session with WordPress. WP Session Manager will not work! DomPdf
- Session is not working properly
- Retrieve parameter from url
- Session constantly resets variable
- sharing the same cookie session with multiple wordpress installs on the same domain?
- How to check if the user was redirected?
- Session stays active until page update in dashboard
- Parsing session info between WordPress and non-WordPress
- $_SESSION dosent’t work
- Form submission: PHP S_SESSION statements within a foreach loop
- What are sessions? How do they work?
- How to use cURL to send Cookies?
- “Cannot send session cache limiter – headers already sent”
- How do I expire a PHP session after 30 minutes?
- proper way to logout from a session in PHP
- PHP sessions that have already been started
- How to access Session variables and set them in javascript?
- Session variables not working php
- How reduce wordpress login session timeout time?
- Removing username from the ‘wordpress_logged_in’ cookie
- Extend WordPress (4.x) session and nonce
- Are transients private or public?
- Is it possible to transfer a WordPress session to a different browser via query string?
- Disable WordPress 3.6 idle logout / login modal window / session expiration
- How to pass users back and forth using session data?
- Allow up to 5 Concurrent Login Sessions
- How to fake a WordPress login?
- Does using set_transient() function can lead to MySQL problems?
- Clearing cookie on logout and session expiration
- Display message once per session to users with a specific role
- Why does $_SESSION only work when I am logged in?
- share login/logout sessions across two installs?
- Handling nonces for actions from guests to logged-in users
- How can I get logged in user’s session data from admin-ajax?
- How do I extend auto logout on idle OR redirect inline popup
- Session is not starting
- $_SESSION variables lost during OAuth callback
- Custom query form submission pagination
- update_user_meta() does not work
- How to expire session after 2 hours and also expire when browser closed?
- pass-protected pages and posts not protected after enter them 1 time
- Disconnect automattically after X minutes
- How to implement a $_SESSION alternative in WordPress inside a theme without a plugin?
- User Session and Stored Cookies not get removed
- Expired session error (admin) when I try to make a call to WooCommerce api [closed]
- Share WordPress login info with other PHP app
- Change the default 10-day expiration for the password protected pages cookie
- How Can I Move Data From Form 1 To Form 2
- iframe does not store session/cookie when refresh parent
- How to store or cache custom shopping cart data for every user’s session
- How to store and receive variables in WP sessions?
- PHP header() gives headers already sent
- Unique session WordPress
- Safe to start a php session on get_header action?
- Get my site session in wordpress?
- Unset session variable on page reload / setup but exclude AJAX
- Run query_posts if SESSION is empty?
- How do I add $_SESSION[”] to my wordpress page?
- Custom $_SESSION expires too early
- Get current session in WP admin
- Store and Change Session variable – PHP SESSION VARIABLE
- PHP session when called wp_ajax_nopriv
- WordPress Website with Login system
- Error when setting cookie
- Add session or cookie to remember last menu location
- Replacing a placeholder term with a session variable value in taxonomy filter
- Plugin or ways to limit number of users logging in the website,
- Restricting wordpress login sessions for a web app
- Correct user session/cookie handling with external site connection in wordpress
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- after logout session not destroy from server/website side
- Sessions with WordPress
- Why isn’t working WooCommerce session inside shortcode?
- Pass WordPress variable to the next page
- Use WP user status (logged_in) to manage access to independent application
- ajax polling with admin-ajax.php
- how to remember specific action/event for current user?
- How to destroy all user sessions via WP-CLI
- User not logged first time I open the homepage
- Where are Sessions are being started? [closed]
- WordPress & PHP sessions
- How to limit user to login only once per session
- determine active user browser at the same time
- How to dynamically change the locale?
- Recognize logged WP user in existing REST API