Your non-wordpress application cannot see the WP cookie because the WP session cookie is only set for the path that WP is installed in (/blog in your example).
You can configure WP to create the session cookie for the root path “https://wordpress.stackexchange.com/” so your non-wordpress application can manage it by modifying your wp-config.php, add –
define( 'COOKIEPATH',"https://wordpress.stackexchange.com/");
define( 'SITECOOKIEPATH',"https://wordpress.stackexchange.com/");
Related Posts:
- 2 wordpress blogs with 1 users table and 1 login
- Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
- Login page ERROR: Cookies are blocked due to unexpected output
- SSO / authentication integration with external ‘directory service’
- Removing username from the ‘wordpress_logged_in’ cookie
- How to keep always logged in development environment
- Getting “Cookies are blocked or not supported by your browser” on login page
- Cookie settings for session across WPML subdomains using custom AJAX login
- Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past
- Get user ID after logging in
- Login with cookie but without using WordPress code
- Get wordpress stored cookies for custom login
- How to get login data (session) outside WordPress?
- Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file
- Login cookie across multiple domains on network w/ mapping
- Can’t login after URL change
- How to set different cookies for logged in admin users and logged in non admin users?
- Logins through alias
- Completely replacing the login form
- v5.6.2 User cannot stay logged in – wordpress_test cookie placed but not auth cookies
- wp-admin redirects to subdirectory after moving installation to subdirectory
- Single sign on with custom site
- Getting a person’s username from a wordpress cookie
- One time login on 2 different WordPress sites
- Single sign on for multiple domains
- How to force “remember me” users to login again?
- Multiple issues with Ajax login function due to browsers and cookies
- Sharing a logged in session with a custom subdmain site?
- Get WordPress logged in username from root domain when WP is installed in a subfolder
- wp-cron event doesn’t run when custom login API is enabled
- Extend Cookie with auth_cookie_expiration not working
- After moving WordPress to its own directory, login doesn’t work
- Custom login method appears to ignore auth_cookie_expiration
- Why deleting/removing cookies in WordPress does not log me out from admin?
- Cookies error during first time login attempt
- Opening protected page with cookie?
- WordPress Cookies – wp_set_auth_cookie
- Why doesn’t the “Remember Me” checkbox work for me on a live website? Only works on a local server environment
- Share login status across subdomains without network
- Handle POST request sent from an external site for login?
- Unable to login my subdirectory WordPress site
- How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?
- Preventing session timeout
- Check for correct username on custom login form
- ‘Password field is empty’ error when using autofill in Chrome
- Prevent wp_login_form() from redirecting to wp-admin when there are errors
- How to disable autocomplete on the wp-login.php page
- how to display the wordpress login and register forms on a page?
- Is it alright for two people to simultaneously be logged into a WP site as administrator?
- How do I turn off the ability to login?
- WordPress Login Footer URL
- Save last login date in global before change it?
- How do I set up single sign on for multiple WP installs across the same domain?
- How can I secure a WordPress blog using OpenID from a single provider?
- password protect individual pages
- Change register form action url
- Is back-end access not required for an app to post to my blog?
- Store brute-force IP addresses
- How do I make my site publicly viewable? Everything redirects to wp-admin
- How to create a private login page for admin.?
- WordPress Security – How to block alternative WordPress access
- Protecting WordPress login page
- Different homepage for logged in users
- reset password link redirect to login page
- Deregister default wp-admin css on login screen only?
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- SSO to WP, from a non-wp site on a different domain and server
- Login with serialized password
- is_user_logged_in() not working in Firefox
- Login cookies set as wrong domain
- Lock out all WordPress Administrators except two specific users
- Do more action after login successfully
- I cannot login and am getting this error message. .
- Can I Get User ID at Login?
- Cannot log into migrated site
- WordPress SSL not working [closed]
- Authentication from sub-folder non-wp cookie WordPress
- Reset Password Limit not working
- User not able to sign in after wp_authenticate() and wp_signon() wordpress
- WordPress site login Redirect
- Thank You Page Layout Differs on User Logged In Status
- On Homepage “is_user_logged_in()” function is not working after login and it is working after refresh the page?
- Problem in auto login after registration
- Cant reset password my wordpress password not even with phpMyAdmin
- Does it make sense to check a nonce on user log in?
- Special link for no automatic login (no username and no password)
- Building a custom login form – encountering issues
- Making sure two different wordpress website has auto login
- Site login failed due to strange warning
- Improvements to “limit login attempts” plugin
- loging to Admin page not working at all
- Can’t login through wp-login.php on fresh installation
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- Authenticate return value
- Front-end login problem: requires re-authorization when accessing dashboard
- Using wp_login_form passowrd as undefined
- When trying to login if already logged in, form just shakes – error message remains empty
- Unable to login after adding ReCaptacha without API key
- How to create an alternative login page that does not use any plugins?
- Remove login link from Reset Password-screen