Jump to content

How do I get a cookie to work across multiple (2) web sites


Recommended Posts

I know this has been asked before and I have searched but I can't find an answer.

 

I have a cookie that is set on a customers web site(yes I've tested it and it is defined) and I was going to use it to display certain info on my web site.

 

Sooo ... How do I get a cookie to work across multiple (2) web sites?

 

Thanks

Link to comment
Share on other sites

You cannot. The best you can do is pass a hash from Site A to Site B that authenticates the user, IE a token like system. This would also mean that Site A and Site B have to be able to talk to each other to authenticate the user in some way and have methods to validate the token.

 

 

Link to comment
Share on other sites

As an example, how does one site on the internet know I was looking at motorcycles on another web site?(this has happened to me)

 

I assume your talking about the advertisements.  This is because the ad companies have their own cookies associated with their banner ads which are all served up from their own domain.  Whenever they serve up an ad they can look at the cookie and determine your preferences from that.  They will get some idea of what you are looking for because when they have their clients include the code for ads on their pages, there is an ID of some sort to identify the client which is categorized on their end into a bunch of groups (like phpfreaks would be put into a computers, technology, program, probably more groups).

 

So whenever you end up loading one of their ads they can see what type of site your on and associate that with the cookie value you have.  Then next time and ad is loaded they take into account the past views based on the cookie id to serve up an ad related to what you've been looking at.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.