php set cookie per ip

movieprodw
movieprodw used Ask the Experts™
on
Hello,

I have domains

1.com
2.com
3.com
4.com
5.com

Is there a way to setup a cookie to work on them all?

They are all on the same IP
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016
Commented:
Short answer: No, not really.  Cookies are restricted by the browser in such a way that they are only returned to the domain that sets them.

Longer answer: Learn about the advertising networks, such as DoubleClick.  These networks redirect client requests through a series of URLs that gather information and set cookies on the browser.  These networks allow servers to recognize browsers that have visited other servers in the network.  Great, but it's complicated to set up the redirection and the client has the option to block your cookies.  If you want to see this in action, clear all of your cookies, then search eBay and Amazon for something like "large copper stock pot."  Then visit some of the cooking sites and see what shows up in your advertisement.

Author

Commented:
Thanks Ray,

Yes, I have seen them 'retarget' me plenty.

Thank you for the help, it helped me move to the next issue.

Matt

Author

Commented:
Thanks
Most Valuable Expert 2011
Top Expert 2016

Commented:
Yep, that "retarget" is exactly what is going on!

Thanks for the points and thanks for using EE, ~Ray

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial