Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
The server can alter the default scope of the cookie using the Path
and Domain attributes. For example, the server can instruct the user
agent to return the cookie to every path and every subdomain of
example.com.
Set-Cookie: SID=31d4d96e407aad42; Path=/; Domain=example.com
Единственная защита — это фильтрация куков
Типичная ошибка при установке COOKIE в PHP