Suppose I set cookie in user browser. like that.
setcookie ("TestCookie", "", time() - 3600);
This cookie contain some secret data.which is usefull for web which create this cookie.
but some other hacker set the cookie like that by urself and access the website.
Can I also check the cookie domain name which create it.
if the domain name is same then the cookie is originol otherwise fake.