0

I have two sites, one is developed in react.js and another is in wordpress. Wordpress will be the main site and react will be its sub domain site. There will be one login page in react site, anyone logged in react site and then coming to main wordpress site in same browser need to simply show that react logged in user name in wordpress menu header.

How we make it possible?

James Z
  • 12,209
  • 10
  • 24
  • 44
Rakhi Vijayan
  • 593
  • 1
  • 7
  • 12

1 Answers1

0

Take a look at this, you can simply set a cookie on the subdomain (=react site) that you can access on the main domain (=wordpress site) Share cookie between subdomain and domain

bkuermayr
  • 34
  • 5