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

define('COOKIEPATH', '/');

define('SITECOOKIEPATH', '/');

Anyone has a solution for this?

Compétences : AJAX, jQuery / Prototype, PHP, WordPress

en voir plus : wordpress org login, ajax non http ftp request, ajax onlie help, 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

Concernant l'employeur :
( 0 commentaires ) Canada

Nº du projet : #8512288

6 freelance font une offre moyenne de $24 pour ce travail


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 !! Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(101 Commentaires)

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(22 Commentaires)

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.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)

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 [url removed, login to view] that's why it's unable to use session or cookies. Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)