PDA

View Full Version : Tricky one... cookies and direct linking to products


ph1
August 21st, 2007, 01:11 PM
Hi,

I have a web site www.nutritionworld.co.uk I use a distribution company clf distribution, who control all orders etc, the problem I have is that I cannot directly link to a specific product from my other web site www.phfitness.co.uk, first I need to go to my nutritionworld hope page as this is where clf distribution drop a cookie on customers computers so that they know the orders came from nutritionworld, there tech guy can`t figure it out :hmm: hopefully someone on here can.... he said that if I could find a way to drop the cookie on the same way its dropped on when you go to nutritionworld that could? solve the problem,

Maybe this is to simple, but what I thought I could do is put the cookie on phfitness so that when someone visits any links to nutritionworld products the cookie is already on there computer?

Any help is much appreciated

ph1

oracle128
August 21st, 2007, 03:25 PM
Cookies from one website cannot be read by another, for security reasons, so what you propose is not possible. However you do have a couple options:
-Have your distribution company recognize cookies from your other site
-Put the cookie code on your product pages (which is probably one product page, driven by a database to show the various product). Look in the ASP code for the Response.Cookies() function(s) on your index page and copy it to the product page (product.asp).

ph1
August 23rd, 2007, 04:02 PM
I have managed to come up with a solution, when you go to my nutrionworld home page a cookie is used to identify nutritionworld with my distributor, so what i am going to do is put the same cookie on my phfitness web site and then directly link to products.
I have tried this by going to nutritionworld home page, then closed browser but i still have nutritionworld cooki on my machine, then created direct link to product in phfitness and it worked.. just waiting for my distributor to send me the code for the cookie.


thank you very much