php - How to use setcookie for only current domain? -
I have the domain example.com which has different subdomains.
I only want to work through cookies:
Or in some other way (i.e. subdomain) and /
Will the work down enough?
setkey ($ name, $ value, $ end, '/', 'www.example.com', false, true); Php contains a syntax for a cookie:
code> cookie (name, value, end, path, domain, secure, httponly) So your example should work. A great resource for all things is PHP (or, for that matter, HTML, CSS, and SQL). There is also a good source.
Comments
Post a Comment