Please help me by telling what is site-wide cookies in PHP. This question while reading an article. Please help. I will grateful to you.
Thanks
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.
Sign up to join this communitySite-wide cookies are cookies that are valid in the whole site (domain). In order to achieve this, you would need to set the correct parameters in the PHP function setcookie().
For example:
setcookie("TestCookie", $value, time()+3600, "/", "example.co.uk");
This would be a site-wide cookie for the domain example.co.uk, and it would last 1 hr.