473,769 Members | 7,650 Online
Bytes | Software Development & Data Engineering Community
+ 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 1671
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********@hot mail.com> wrote in message
news:ey******** ******@TK2MSFTN GP12.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********@hot mail.com> wrote in message
news:ey******** ******@TK2MSFTN GP12.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
2824
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 missing the big picture. Is it like this: 1. user comes to site 2. user does something (e.g. a search) that may be useful later => session
5
2811
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 have been looking our asses off but can not find a working solution. the code we came up with is ...
3
1619
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 cookies", and we have disabled the use of session because we have clustered web servers and do not want to store session state elsewhere due to performance concerns, does that prohibit the use of these session cookies altogether? Or is the...
9
5522
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 http://www.developersdex.com ***
2
1707
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 Set-cookie: a=abc; Secure; Path=/ ;Domain=.abc.com the later one will not be included in the Cookie list in the later request. Does anyone knows whether the order of "secure" matter?
3
3991
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 to set it up on multiple servers. The problem is that when someone uploads a file, how do I distribute it to all of the servers? Should I use php to send it to all of the servers once
29
3012
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 switch/case to take action based on that value in the cookie. I want to set the cookie manually, so I don't need setcookie(). I see that in PHP it stores the cookie in memory. Is there a way to have PHP just read a cookie from the desktop machine?...
3
5814
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 to Read the available cookies in the Local Machine, and it has to create cookies in the Local Machine.
8
2067
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 message. I can't seem to find where I'm going wrong. Here's the code: Setting Cookie and Form Page: <html><head><title>Problem3</title> <script type="text/javascript" src="core.js"></script> <script type="text/javascript">
0
10214
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9996
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.