473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Cookies: Multiple Domain Names/Same server

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,
--
Phil Lamey, EIT
CGI Consultant
Jul 21 '05 #1
2 1556
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...

"Phil Lamey" wrote:
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,
--
Phil Lamey, EIT
CGI Consultant

Jul 21 '05 #2
If you leave the domain as <.domain.com> it shouldn't matter what sub domains
use it. Both www.x.domain.com and www.z.domain.com would be able to read this
cookie.

Hope this helps.

"[Alan Flores]" wrote:
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...

"Phil Lamey" wrote:
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,
--
Phil Lamey, EIT
CGI Consultant

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Marcin Gorzynski | last post by:
Hi Our partner is using our page in a frame. That couses a problem because our domain is unable to issue the cookie also session does not work. each time you click in the frame new session is...
0
by: Fred Palmer | last post by:
Hi all, Can anyone point out some best practices for handling cookies with multiple domains aliases? The problem is that I've got a site with multiple domain aliases and I want them to all...
6
by: DJones | last post by:
I'm using the following code in my .Net application (.Net v1.1, Windows 2000) to write Session Cookies. HttpContext.Current.Response.Cookies("cookieSession")("SessionID") = strSessionID ...
2
by: Phil Lamey | last post by:
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...
12
by: Don Juan | last post by:
I have a simple html document I have been using for some time on my (i.e.) abc.com domain that uses cookies. I recently purchased a new domain name and set up a service to redirect my new domain...
3
by: Ben Holness | last post by:
Hi all, I have a php/mysql website where people can upload their own graphics for the buttons and background of pages on the website. This used to run on one server, but I have now been asked...
7
by: Control Freq | last post by:
Hi, Apologies of you have heard this many times before, but I don't know if this is a .NET problem or javascript, or something else. I am using IE6 to view pages from a corporate web server...
3
by: Matthew Laping | last post by:
I'm in the process of creating a web farm, however my cookie information is not seen by both servers. I'm thinking it might be a security issue because my web farm is not fully functional....
5
by: piedpiper | last post by:
I am coding a http proxy in c# and using httpwebrequest class to send request to the web server, when the server returns multiple set-cookie headers then the httpwebresponse object combines them all...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.