Cookies: Multiple Domain Names/Same server

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

What do you do when your external DNS lists varying DNS names for the same
server. I know you can specify a domain for the cookie but how can you
request the cookie or a specific domain?

IE: Let say in then DNS www.x.mydomain.com and www.y.mydomain.com point to
the same server.

Mostly we want the users using www.x.mydomain.com but somehow a user gets
onto the server using www.y.mydomain.com. Using forsight we have taken this
into account and if something is purchased the information is stored in the
basket cookie on www.x.mydomain.com domain then there is nothign in the
basket for the "server name" that they are on. How do we force the basket to
look at the domain we specified when we created the cookie information?

Thanks,
 
hi.

one solution would be to not use cookies. because they are domain specific.
if you want this thing to work properly, store the basket info on your
database (not on the cookie) and keep the a session id on your querystring,
so when your user hops between pages of www.x.domain.com and
www.y.domain.com, you will be able to track the user through the session id
being passed on the query string..

hope this helps...
 
Back
Top