I have Wordpress website on www.something.com
, and another php script on sub-domain www.panel.something.com
my php script has its own separate database and user table
Im trying to implement Single Sign On from Wordress and remove registration and sign in process on my php script on sub domain
as I follow this answer here
Single Sign On with SubDomains
as a first step I tried to enable COOKIE on main domain and sub-domain
but when I put this in my wp-config.php
it doesnt let me to sign in to Wordpress
define( 'COOKIE_DOMAIN', '.something.com' );
even removing the dot
define( 'COOKIE_DOMAIN', 'something.com' );
doesnt work
I even tried
define( 'COOKIE_DOMAIN', 'www.something.com' );
but it doesnt let me login in my main Wordpress site
Im trying to use the same cookie in my www.something.com
as well as my sub-domain www.panel.something.com
Thanks