My problem was due to bad use of COOKIEPATH.
The overwrite of COOKIE PATH blocked the browser to display and access to wordpress_logged_in_ cookie and its reading.
The browser Safari was entirely blocked and didn’t allow access to wordpress dashboard.
Also the error “Cookie blocked : please activate cookies” of browser was entirely due to cookie.
My solution (work for domain and subdomain using same theme ):
define('ADMIN_COOKIE_PATH', '/wp-admin');
define('COOKIE_DOMAIN', '.website.com');
define('COOKIEPATH', "https://wordpress.stackexchange.com/");
define('SITECOOKIEPATH', '.website.com');
define('COOKIEHASH', md5('website.com') );
Related Posts:
- Extend Cookie with auth_cookie_expiration not working
- Opening protected page with cookie?
- Can I programmatically login a user without a password?
- 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
- Removing username from the ‘wordpress_logged_in’ cookie
- What is $interim_login?
- Adding extra authentication field in login page
- What exactly is ReAuth?
- Login members using web services
- Disable WordPress 3.6 idle logout / login modal window / session expiration
- How to pass users back and forth using session data?
- Need to execute a cron job
- 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
- how to update current logged user username
- Get wordpress stored cookies for custom login
- Validate Custom Login field
- How to get login data (session) outside WordPress?
- Calling wp_signon doesn’t log the user in
- Login cookie across multiple domains on network w/ mapping
- Can’t login after URL change
- How to implement Google reCaptcha without installing a plugin?
- How to set different cookies for logged in admin users and logged in non admin users?
- 2 wordpress blogs with 1 users table and 1 login
- Is it possible a one click user registration with Facebook or Twitter (or other Social Networks)?
- Logins through alias
- Are there ways of logging in that bypass wp-login.php altogether?
- How to display username and password after registration
- How to save generated JWT token to cookies on login?
- v5.6.2 User cannot stay logged in – wordpress_test cookie placed but not auth cookies
- Two factor authentication
- Removing wordpress cookie from non-wordpress site
- How to generate “WP_Error” Object for user login?
- Getting a person’s username from a wordpress cookie
- Allow Access to Home Page and Login Screen but Nothing Else (unless logged in)
- Where is the php file, that does the checks for login information?
- I want login using email not username wordpress front end
- Reloading page with a query string upon login for admins
- One time login on 2 different WordPress sites
- WordPress authentication using custom php?
- authenticate user without redirecting
- How to force “remember me” users to login again?
- Sharing a logged in session with a custom subdmain site?
- How to post frontend login form to a different authentication script from wp-login?
- Custom user roles are unable to login
- Using WordPress login for a non word-press website
- The same session information for peer users on two different WordPress servers
- 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
- Custom login method appears to ignore auth_cookie_expiration
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- Why deleting/removing cookies in WordPress does not log me out from admin?
- Cookies error during first time login attempt
- Can we start session from another php site to wordpress blog site?
- 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?
- External Authentication
- Login and register by API
- How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?
- wp_set_auth_cookie() doesn’t work in Ajax call
- Make my wordpress blog remember my login “forever”
- How to check in timber if user is loggedin?
- Stop WordPress from logging me out (need to keep me logged in)
- Does wp_logout_url() destroy a session? (Logging out question)
- Gaining Login Access via the Database
- Changing Login Logo
- How can I retrieve the username and password from my WordPress installation?
- wp-admin seems to be redirecting
- WordPress login urls
- Use WordPress with a custom OAuth2 provider
- WordPress Login page trashed
- wp-login gives 404 error, but wp-admin is working fine
- Password protect media attachment – share across guests
- Password reset – Disabled for LDAP accounts
- Completely replacing the login form
- How can I change the email sender name from wordpress to (myblogname) on the “lost password” email?
- Keep user session with custom implementation of user login
- Forcing frontend login with UI switch
- Login without Password
- what is the best and safest way to allow users to register to site
- How to create separate login for authors/moderators/subscribers?
- Google reCaptcha on WP login page
- WordPress login page not display
- WordPress Login & Register works in localhost but don’t work on server
- Opening WordPress on wordpress.example.com, while the webpage is at example.com
- prevent login after incorrect password 5 times
- Why does /wp-admin login send me to this landing page?
- WordPress login page blank after customizations – works on other sites
- WordPress does not send email confirmation to newly registered users
- Chrome incorrectly displaying WP login as ‘not fully secure’
- Changed from HTTP to HTTP, can login no longer login
- Hide wp-login.php but not the widget
- Without user loging inner page is disable wordpress [duplicate]
- WordPress MU: Cookie error when trying to login on network WP instance