Help with custom AJAX login cookies

I am trying to enable a custom login session across both English and French subdomains.

-WordPress is installed only on

-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]');

define('COOKIEPATH', '/');

define('SITECOOKIEPATH', '/');

Anyone has a solution for this?

Skills: AJAX, jQuery / Prototype, PHP, WordPress

See more: wordpress org login, ajax non http ftp request, ajax onlie help, cms, php, html, wordpress, bootstrap, logo design, woocoomerce, sharepoint help desk request web part, login ajax, com login joomla custom, login ajax php mysql, custom help system excel vba, login ajax mysql, register login ajax php, vbulletin login view custom page

About the Employer:
( 0 reviews ) Canada

Project ID: #8512288

6 freelancers are bidding on average $24 for this job


Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! More

$54 USD in 1 day
(101 Reviews)

Hello Dear sir/madam, Thanks for the open project.. We have very good (4+ Year) experience developer in PHP ,JOOMLA ,WORD-PRESS,OS-Commerce. We have strong experience in below things. PHP : core php Custo More

$15 USD in 1 day
(22 Reviews)

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.

$15 USD in 1 day
(3 Reviews)

I am an experience web developer having good hands on latest relevant technologies used for the front end and backend development,i am experienced in doing the similar projects,i could be results a better resource for More

$20 USD in 1 day
(3 Reviews)

What you are doing should work, it may be a separate problem. I would need access to the webpage code in order to debug

$15 USD in 1 day
(0 Reviews)

I have worked on so many wordpress sites. I have gone through your problem. I understand your need. Your custom ajax login is probably not accessing the [login to view URL] that's why it's unable to use session or cookies. More

$25 USD in 1 day
(0 Reviews)