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

Frames and cookies in IE

I've been having a problem retrieving a cookie set in a frame.

The way the page works, I have a frameset covering the entire viewable
area. The outer frame is from one domain, the inner frame is another
(don't bother asking why.. I just need to).

Lets say the outer frame loads "http://www.domain-A.com/whatever.aspx",
and the inner frame loads "http://www.domain-B.com/another.aspx".

All click navigation occurs in the inner frame, loading content from
domain-B. I set a cookie in the inner frame (domain-B) and retrieve it
again in the inner frame (domain-B) on the next page request. Domain-A
in never involved in the cookie process.

Now in Firefox I can get the cookie just fine. In IE I cannot. This
doesn't make sense. Now I know a cookie can't cross a domain boundry,
but in this case it shouldn't be. Domain-B is the one both setting and
retrieving the cookie.

Any ideas out there?

Thanks in advance!

Nov 19 '05 #1
3 1293
Hi,
pls see this thread re: P3P and IE and cookies from diffrent domains:
http://groups-beta.google.com/group/...18a69f68cf5234

just guessing, IE6 may still be blocking the cookie, treating it as a
third-party cookie, even though all the hott cookie action is happening
within the same domain, because the parent frame is still in a different
domain?

HTH,
Premier JiangZemin

<jo*******@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I've been having a problem retrieving a cookie set in a frame.

The way the page works, I have a frameset covering the entire viewable
area. The outer frame is from one domain, the inner frame is another
(don't bother asking why.. I just need to).

Lets say the outer frame loads "http://www.domain-A.com/whatever.aspx",
and the inner frame loads "http://www.domain-B.com/another.aspx".

All click navigation occurs in the inner frame, loading content from
domain-B. I set a cookie in the inner frame (domain-B) and retrieve it
again in the inner frame (domain-B) on the next page request. Domain-A
in never involved in the cookie process.

Now in Firefox I can get the cookie just fine. In IE I cannot. This
doesn't make sense. Now I know a cookie can't cross a domain boundry,
but in this case it shouldn't be. Domain-B is the one both setting and
retrieving the cookie.

Any ideas out there?

Thanks in advance!

Nov 19 '05 #2
Awesome, that did the trick.

Nov 19 '05 #3
Awesome, that did the trick.

Nov 19 '05 #4

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

Similar topics

6
by: BWGames | last post by:
Hey all, I have a website, which uses frames (I know, I know...). Left frame is a navbar, with the main content in the right frame. I can login using sessions on the right frame, giving...
4
by: A Web Master | last post by:
I want to know the best way of passing on variable contents on a site coded in ASP using frameset/frame. Content is used in all frames for stuffs like screen_resolution, language, ... My...
0
by: Dan Meehan | last post by:
I created a music website that allows people to sign up and post messages on some message boards and update their profiles and such. The login script uses cookies, so when they Log Into the site it...
1
by: Eric Petzold | last post by:
What's the trick to sharing cookies between frames? I can set and read a cookie in the same frame, but if I try to read the cookie in another frame it is undefined. :o( There are some other...
1
by: Keimo Repo | last post by:
Hello I would need some advice, even just speculations... A customer of ours insists on a couple of customer specific design features for our existing multi-customer web application: - A...
20
by: M.Siler | last post by:
Let me first by saying I am NOT a .net programmer, but am very skilled with ASP, JavaScript, HTML, DHTML, Flash development. I've been reading through posts here about Frames vs. Master Pages and...
5
by: David T. Ashley | last post by:
Hi, I have an application where I use a left frame to navigate to another page in the main frame. After I've done this, when I use "RELOAD" in the browser, it goes back to the original page...
14
by: bill | last post by:
I currently have a site which has the index page immediately open two frames. I put a music object in the top frame. That way the music is not cut off when the user navigates to another page and...
27
by: Murray R. Van Luyn | last post by:
Hi, Is using frames in a website as big an issue nowadays as it was maybe 5 or so years ago? I can remember that you used to have to have a frame site, as well as a non frame site for browsers...
1
by: R. Vince | last post by:
I have a page, which writes a cookie, creating two frames. I have verified via Fireplug that the cookie is being written. In one of the frames, an attempt then is made to read the cookie. Therein,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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.