I am trying to enable a custom login session across both English and French subdomains.
-WordPress is installed only on domain.com.
-There are only [url removed, login to view] and [url removed, login to view] as WPML subdomains, with redirects (as instructed here: [url removed, login to view]).
-No issues with navigation across subdomains.
My AJAX custom login successfully signs in the user with wp_signon(). The AJAX request successfully returns 4 cookies. However, session is not initiated; on page refresh, user is still not connected.
When I login through /[url removed, login to view], the session is properly initiated.
It seems like the solution lies in the proper configuration of COOKIE_DOMAIN, COOKIEPATH & SITECOOKIEPATH settings:
define('COOKIE_DOMAIN', '.[url removed, login to view]');
Anyone has a solution for this?
6 freelance ont fait une offre moyenne de 24 $ pour ce travail
Hi I'm Steven I have skills on this, leave me message about your environment, I will help troubleshooting and fix it. You only pay after bug is fixed :) Steven Thanks.