Forum Moderators: coopster

Message Too Old, No Replies

2 domains on one dedicated server

setting cookies on both from one site

         

jamie

5:42 pm on Mar 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi,

our ecom site is on example.com. when the user enters from a link from example.de, i wish to set a cookie from example.com which i can read on example.de. i have tried:

setcookie('cart', $cookie, time()+86400, '.example.de');

but this doesn't seem to work. (i have all p3p policies in place).

can anyone suggest a reason?

many thanks

[edited by: eelixduppy at 7:51 pm (utc) on Mar. 23, 2007]
[edit reason] exemplified domain [/edit]

coopster

6:55 pm on Mar 24, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It is because
example.com
and
example.de
are two completely different domains.

jamie

5:58 pm on Mar 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thanks for clarity coopster :)

i had a complete blind spot about this but now realise, of course not.

jamie

9:54 pm on Apr 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi

i just wanted to add to this:

using an iframe on the second domain, i can call the shopping cart script on the first domain and display the contents.

hope this might help someone in the future.

cheers