473,382 Members | 1,705 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,382 software developers and data experts.

pass cookie from one domain to another on the same server

Hi all,
Is there an easier way to handle that? I used Javascript to handle this when
our two domains are hosted on two different servers(on different networks)
and our search engine marketing people don't like the javascript links since
they think the links are not favorable to a search robot.

Now our company is thinking about hosting these two domians on the same
server,
So I am wodering if there is any easy way to do that. Would you provide me
some clues?
Thank you so much.
--
Betty
Nov 21 '07 #1
5 5896
=?Utf-8?B?YzY3NjIyOA==?= wrote on 21 nov 2007 in
microsoft.public.inetserver.asp.general:
Is there an easier way to handle that?
Please do not use the subjectline as part of your Q.
I used Javascript to handle
this when our two domains are hosted on two different servers(on
different networks)
Cookies exist on the client per domain, and cannot be passed to another
domain.

The cookie content string can be palced on two domains seperately.
and our search engine marketing people don't like
the javascript links since they think the links are not favorable to a
search robot.
Sorry? Does this have anything to do with your Q?
Now our company is thinking about hosting these two domians on the
same server,
So I am wodering if there is any easy way to do that. Would you
provide me some clues?
What you can do with two domains on two servers, you can do with two
domains on one server. Cookies do not live on a server.

Any reason why this sould not be the case?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 21 '07 #2
Hi Betty,

As for the "copy cookie from one domain to another", I'd like to confirm
the exact things you want to achieve:

** cookie is stored on client machine and whenever browser visit a site, it
will send the cookies (belong to that site based on the server domain name)
to server.

** when you change cookies, that means you change the cookies at
server-side and it is until the response reach client will the cookies data
actually be updated in client store

** For cookies, your server-side code(ASP or ASP.NET) can only add/remove
cookie within its own domain(or the same main domain and different sub
domain).

Therefore, normally, manipulate cookies under same top domain (and
different sub domains) are directly supported. However, if you want to
manipulate cookies for different top domain in single application, you will
need particular machnism setup in your context(for all those
applications/sites that want to share cookies). Here is an article
discussing something about this:

#Sharing Cookies Across Domains
http://support.softartisans.com/kbview_666.aspx

Hope this helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?YzY3NjIyOA==?= <be***@newsgroup.nospam>
Subject: pass cookie from one domain to another on the same server
Date: Wed, 21 Nov 2007 13:47:00 -0800
>
Hi all,
Is there an easier way to handle that? I used Javascript to handle this
when
>our two domains are hosted on two different servers(on different networks)
and our search engine marketing people don't like the javascript links
since
>they think the links are not favorable to a search robot.

Now our company is thinking about hosting these two domians on the same
server,
So I am wodering if there is any easy way to do that. Would you provide me
some clues?
Thank you so much.
--
Betty
Nov 22 '07 #3
On Nov 21, 3:47 pm, c676228 <be...@newsgroup.nospamwrote:
Hi all,
Is there an easier way to handle that? I used Javascript to handle this when
our two domains are hosted on two different servers(on different networks)
and our search engine marketing people don't like the javascript links since
they think the links are not favorable to a search robot.

Now our company is thinking about hosting these two domians on the same
server,
So I am wodering if there is any easy way to do that. Would you provide me
some clues?
Thank you so much.
--
Betty
I would also be interested in knowing what you are storing in those
cookies.

I have changed almost everything over to server side data storage,
including shopping carts, etc... all on my servers.

The only thing the cookie does for me is keeps them unique for me. If
I wanted them to be on 2 domains ... during a login process I would
simply have a data pass to a cookie on the other domain. I like to use
invisible iframes in my pages for passes like that.

I had one project that I wanted to keep a session alive between 2
sites even ... I think I used a 1px by 1px iframe in the footer of
both websites that was a blank design asp webpage.

Anyway, let us know more about what you are doing between them,

Brynn Curry
Nov 24 '07 #4
Hi all,
Thanks for your reply. Here is my case.
Our company initially(about more than 5 years ago) has a web site(domain A)
which is hosted by a company on a lynix system. Later on our company decided
to have some dynamic pages(sales processes) which were written in asp on our
site too. So the company decided to host those pages on a different
domain(domain B) with another hosting company. So when one of our customers
gets on to our page 1 on domain A from a specific agents site, (we always
have a producer code, stored as a cookie, assigned to our specific agent),
and then if this customer's navigation on our domain A lead to a sale on our
domain B, say page 2, then this cookie values need to be carried onto domain
B, so this value could be written into our database and the sales credit will
go to our specific agents.

When we pass our cookie value from domain A to domain B, I used the
javascript. that's why I am asking th question. I am trying to think about
another way which will be better for search engine.
Thank you.
--
Betty
"Brynn" wrote:
On Nov 21, 3:47 pm, c676228 <be...@newsgroup.nospamwrote:
Hi all,
Is there an easier way to handle that? I used Javascript to handle this when
our two domains are hosted on two different servers(on different networks)
and our search engine marketing people don't like the javascript links since
they think the links are not favorable to a search robot.

Now our company is thinking about hosting these two domians on the same
server,
So I am wodering if there is any easy way to do that. Would you provide me
some clues?
Thank you so much.
--
Betty

I would also be interested in knowing what you are storing in those
cookies.

I have changed almost everything over to server side data storage,
including shopping carts, etc... all on my servers.

The only thing the cookie does for me is keeps them unique for me. If
I wanted them to be on 2 domains ... during a login process I would
simply have a data pass to a cookie on the other domain. I like to use
invisible iframes in my pages for passes like that.

I had one project that I wanted to keep a session alive between 2
sites even ... I think I used a 1px by 1px iframe in the footer of
both websites that was a blank design asp webpage.

Anyway, let us know more about what you are doing between them,

Brynn Curry
Nov 26 '07 #5
Hi Betty,

Yes, you may need to look for some other approaches. For share cookie, I
think the last link in my previous reply (below) should be a doable
appraoch:

http://support.softartisans.com/kbview_666.aspx

Hi BeSharp,

As for the D LINQ selection scenario you mentioned, I think it sounds like
what you want to do is a SQL "LIKE" comparison. For {"...",
"..."}.contains, "contains" actually means that the input parameter exactly
match any of the i tem in collection, that is not substring mapping. For
substring mapping, you should use SQL "Like" style selection. Here is a web
thread discussing on using "LIKE" query in LINQ:

#using LIKE in DLinq
http://forums.microsoft.com/MSDN/Sho...08989&SiteID=1

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?YzY3NjIyOA==?= <be***@newsgroup.nospam>
Subject: Re: pass cookie from one domain to another on the same server
Date: Sun, 25 Nov 2007 20:21:01 -0800

Hi all,
Thanks for your reply. Here is my case.
Our company initially(about more than 5 years ago) has a web site(domain
A)
>which is hosted by a company on a lynix system. Later on our company
decided
>to have some dynamic pages(sales processes) which were written in asp on
our
>site too. So the company decided to host those pages on a different
domain(domain B) with another hosting company. So when one of our
customers
>gets on to our page 1 on domain A from a specific agents site, (we always
have a producer code, stored as a cookie, assigned to our specific agent),
and then if this customer's navigation on our domain A lead to a sale on
our
>domain B, say page 2, then this cookie values need to be carried onto
domain
>B, so this value could be written into our database and the sales credit
will
>go to our specific agents.

When we pass our cookie value from domain A to domain B, I used the
javascript. that's why I am asking th question. I am trying to think about
another way which will be better for search engine.
Thank you.
--
Betty
"Brynn" wrote:
>On Nov 21, 3:47 pm, c676228 <be...@newsgroup.nospamwrote:
Hi all,
Is there an easier way to handle that? I used Javascript to handle
this when
our two domains are hosted on two different servers(on different
networks)
and our search engine marketing people don't like the javascript links
since
they think the links are not favorable to a search robot.

Now our company is thinking about hosting these two domians on the same
server,
So I am wodering if there is any easy way to do that. Would you
provide me
some clues?
Thank you so much.
--
Betty

I would also be interested in knowing what you are storing in those
cookies.

I have changed almost everything over to server side data storage,
including shopping carts, etc... all on my servers.

The only thing the cookie does for me is keeps them unique for me. If
I wanted them to be on 2 domains ... during a login process I would
simply have a data pass to a cookie on the other domain. I like to use
invisible iframes in my pages for passes like that.

I had one project that I wanted to keep a session alive between 2
sites even ... I think I used a 1px by 1px iframe in the footer of
both websites that was a blank design asp webpage.

Anyway, let us know more about what you are doing between them,

Brynn Curry
Nov 27 '07 #6

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

Similar topics

1
by: Tony Archer | last post by:
(Forgive the dupicate post, I had left out the OS Version out of the prior post.) Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a...
1
by: WeAreGoing! | last post by:
Hello. I need to transfer an MD5 digest number between two pages on different domains. I know this is generally not possible, but I have full access on one domain and can insert Javascript at...
2
by: BH | last post by:
I developed a small web app using the FormsAuthentication class to set a cookie (FormsAuthentication.SetAuthCookie(value, isPersist)). The cookie persists fine on my local PC when "isPersist" is...
3
by: rss | last post by:
SUMMARY: ========== I am unable to pass along a simple Cookie obtained from a HttpWebRequest call (Machine A's ASP.NET app) so that another Web Server (Machine B) recongnizes the cookie. I...
3
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code...
17
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page...
6
by: taylor.ettema | last post by:
I wish to create an application that will be spawned within a host web application after the container app has authorized a user. These two apps are seperately developed/maintained, and can only...
2
by: Sean | last post by:
I am trying to read a cookie I set but I am not sure if I really set it correctly or I am not reading it correctly. I was given the following instructions to set the cookie. It appears to be...
16
by: Stevo | last post by:
I'm guessing this is a laughably obvious answer to many here, but it's not to me (and I don't have a server or any knowledge of PHP to be able to try it). It's not strictly a PHP question, but...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.