Hello. There is a site mysite.ru and bla.mysite.ru . Site bla.mysite.ru - works on a subdomain, with the same database as the site mysite.ru .
When a user passes authorization on the site mysite.ru - and after that gets on the site bla.mysite.ru , authorization disappears.
When logging in, I write the user id in the COOKIE :
setcookie('id_us', $data['id'], time() + 60 * 60 * 24 * 7, "/"); How can I save authorization for a site on a subdomain?