473,473 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Reading cookies from different servers

Hi,

We have different web sites e.g www.abc.com, www.xyz.com I want to read
cookies written by www.abc.com from www.xyz.com and vice versa. Please
advise.

Thanks
AQ.
Nov 17 '05 #1
2 1656
For security reasons, I don't think you can.

The topmost level you can write a cookie - is at the domain level. So if you
specified a cookie was for "abc.com" - any page and any subdomain could read
that cookie, but no one else could.

If you are working with another company, you should setup a common
subdomain. For example, if you are at www.abc.com - and your vendor is
www.xyz.com - they should setup a web server and call it xzy.abc.com - so
then they can write cookies and you can read them (because they are from the
same domain) - and vice versa.

But you can't just read anyone elses cookies.. Imagine, you could go read
the cookies for my automatic login to EBay or my bank... that would be bad..

"Abdul Qadir Khan" <co********@hotmail.com> wrote in message
news:ey**************@TK2MSFTNGP12.phx.gbl...
Hi,

We have different web sites e.g www.abc.com, www.xyz.com I want to read
cookies written by www.abc.com from www.xyz.com and vice versa. Please
advise.

Thanks
AQ.

Nov 17 '05 #2
What you can do is save the information ( that you put in a cookie and wants
to share between domains ) in a SQL Server Database that way you can get
to the data you want. You will have to do more work here however.

"Abdul Qadir Khan" <co********@hotmail.com> wrote in message
news:ey**************@TK2MSFTNGP12.phx.gbl...
Hi,

We have different web sites e.g www.abc.com, www.xyz.com I want to read
cookies written by www.abc.com from www.xyz.com and vice versa. Please
advise.

Thanks
AQ.

Nov 17 '05 #3

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

Similar topics

1
by: windandwaves | last post by:
Hi Gurus I am basically sorry that I have to bother you about this. I am a PHP beginner and I have been studying sessions and cookies over the last few weeks. I have learned lots, but I am...
5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
3
by: Mark | last post by:
I'm told that ram based cookies refer to session cookies (which the browser may still store on disk if it likes). These cookies that are destroyed when the bowser exits. If they are "session...
9
by: Mike Reed | last post by:
I must be having a "senile" day! I cannot recall, nor get to work, code to read a cookie's expiration date/time in an ASP page/VBScript. What am I missing? *** Sent via Developersdex...
2
by: jacksu | last post by:
I have one application in two servers, two servers returns the same cookie but with some elmenet in different order, Set-cookie: a=abc; Path=/; Domain=.abc.com; Secure another one is...
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...
29
by: Jerim79 | last post by:
I did try to find the answer to this before posting, so this isn't a knee jerk reaction. What I am trying to accomplish is to have a script that opens a cookie, reads a value, and then use a...
3
by: ramesh.nrk | last post by:
Hi, Is there any way to read the cookies which are in local machine? Can we create cookies using windows Application in the local machine? I am developing a windows application which needs...
8
by: LayneMitch via WebmasterKB.com | last post by:
I'm supposed to develop a page that asks info as form values and when you hit "submit" it takes you to a page that reads the values you entered into the first page and displays those values in a...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.