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

Cookies problem, I believe it has to do with domains?

Gretings, I hope someone can help me to clarify this:

I have an application with cookies, it works fine when I browse it.

The thing is that this app will be shared by different pages (different
domains). When I browse it from other domain (inside a frame).. It
stops working.

Is this because it is being called from a different domain? Shouldnt
work anyway because the app works by itself? It doesn´t share the
cookie with other pages.

I´ll apreciate any help on how could I solve this problem!

Greetings.

Drakon.

Jul 17 '05 #1
2 1313
Drakon,
The thing is that this app will be shared by different pages (different
domains). When I browse it from other domain (inside a frame).. It
stops working.


Cookies can not be shared across domains. The cookie is normally set
for that domain only and the browsers will not allow other pages access
because it could be a huge security vunribility.

As for a workaround you could possibly send the current cookie to the
other page that is in another domain either by javascript or using php
and sending all of the items in the cookie with it.

This is the only thing I could see as a workaround.

Mike
Jul 17 '05 #2
*** ma************@gmail.com wrote/escribió (16 May 2005 08:09:54 -0700):
Is this because it is being called from a different domain?


Cookies are always attached to a domain and (optionally) a directory.
Several reasons for that:

* Browsers don't need to waste bandwidth sending *all* cookies stored in
the computer with every HTTP request.

* Sites don't overwrite other's cookies.

* Your private info stored in cookies is not sent to every site you visit.
If you need to create a cookie and read if from other sites, you can create
one different cookie per site (with the same value), but you must be aware
that some browsers block third-party cookies by default.


--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Jul 17 '05 #3

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

Similar topics

1
by: Angus SC2 | last post by:
Hi I am trying to set up cross domain cookies on a server I have running that currently has 2 domains running on it (on different IPs). Basically I have a forums site (using UBB threads) and I...
2
by: Keon | last post by:
Hoi Is it possible to use cookies between different domains? For my site I use 2 domains; the first for my global site with ASP en HTML the second is for my forum located on "hyperboards" a...
7
by: | last post by:
I think I may have a problem with the user of cookies in my centralized logon and registration system that I hoped could be consumed by all the sub-domains on my remote host IP. I built the...
3
by: Simon B. Nielsen | last post by:
Is it possible for me to set a cookie from MyDomain1.com and then read that same cookie from MyDomain2.com?
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...
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...
2
by: patilj | last post by:
OK, here's the deal. Let's say I got a website called: https://www.blah.com/~account/application/login.php When the user arrives they see a https which is more secure than just http alone....
5
by: yawnmoth | last post by:
If running off of the local filesystem, in Firefox, or if the security settings are set appropriately, in Internet Exporer, XmlHttpRequests can be sent to any domain of your chosing. But what...
4
by: Khafancoder | last post by:
Hi guys, we are developing a webapplication which let user create their own virtual website on their real domain. in other word, users could create their virtual web-sites by this application...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.