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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -