setcookie("samplecookiename", "sampledata", time()+3600*24*10, '/', 'domain.com', TRUE, TRUE);
This syntax sets the cookie in name samplecookiename with data sampledata with expiry date perfectly. But still I see the cookie is available for all type of connections. What is the issue? The PHP version used in the website is 5.3.27 and in localhost 5.3.8.
Any ideas?
Update: The cookie is also accessible by scripts too. Means the cookie is not set as HTTP only.