473,698 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cookies and Frames

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 cookies that are available in all frames, so I know
that the frames are capable of reading cookies, just not the ones that I set
in the other frame.

P.S. I am not setting any expiration, path, or domain... keeping the
defaults.
Jul 23 '05 #1
1 1687
Eric Petzold wrote:
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 cookies that are available in all frames, so I know
that the frames are capable of reading cookies, just not the ones that I
set in the other frame.

P.S. I am not setting any expiration, path, or domain... keeping the
defaults.


This is as bad a problem description as any.
<http://www.catb.org/~esr/faqs/smart-questions.html>

How exactly do you attempt to set each cookie?
What is the URI of the resource to set each cookie?
How exactly do you attempt to read each cookie?
What is the URI of the resource to read each cookie?
With which user agents and versions have you tested
with on which operating system? Are there any errors
displayed (in the JavaScript Console) when executing
script code on the Web site?

At least those questions have to be answered before
one can make even an educated guess.

<http://jibbering.com/faq/>
PointedEars
Jul 23 '05 #2

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

Similar topics

0
1634
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 does something like: Response.cookies("ID") = RS.fields("UserID").value Response.cookies("USERNAME") = RS.fields("Username").value Response.cookies("LEVEL") = RS.fields("ULevel").value and from there, I have a header include that will...
1
2958
by: martingerber | last post by:
Hi, I have the following script (javascript in html document): <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>Standort Speichern</title>
7
2238
by: Bert | last post by:
I have been reading the post and the FAQ and have been unable to find anything that will help with my problem. First let me say that I am not a web developer, designer and no next to nothing about javascript. I am just rebuilding my site and need help. We run a bamboo nursery and the site has listings of over 100 varieties we sell. The site uses regular pages and framesets for the discriptions of the bamboo. The framesets have a top...
0
1444
by: Ed Douglas | last post by:
Hiyas, I've been banging my head against a brick wall for the last few days trying to work out why some of my code doesnt work. I have an ASP/ASP.NET application (website) that is the was previously simply an ASP site. The first thing we have done is moved an old C++ COM object that managed the applications security into a more OO structure and also into the .NET environment - its now a number of C# classes in a Service layer of the...
12
7775
by: Don Juan | last post by:
I have a simple html document I have been using for some time on my (i.e.) abc.com domain that uses cookies. I recently purchased a new domain name and set up a service to redirect my new domain (i.e.) xyz.com to a sub-directory of the abc.com domain. In other words, when someone goes to URL xyz.com, they really end up in abc.com/xyz directory but the MSIE browser says they are xyz.com. The problem is that cookies quit working in this...
1
2772
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, I have code to see if the cookie is set -- and it keeps telling me it is not set (despite my being able to see it there, and it;s contents, and it is correct). Can someone please tell me why, in this code, my frame connot read this cookie? Thanks....
1
1261
by: parkpost | last post by:
Hi - I'm making a comparison site with frame and have encountered a problem. Pages come up in a lower frame that I want to interact with, but I keep getting a message from them saying "enable cookies on your browser to continue." Cookies are enabled on my browser so I am assuming that frames are preventing the cookies from working. I need a script that will instruct my framing page to receive the cookies of my framed page, so that we can...
1
1588
by: Sanjib Biswas | last post by:
Hi, I have an ASP.Net application that runs in the localhost (site-A). With-in the .cs file I am accessing another site (site-B) that returns me cookies. I am also able to do a Post on that site and its working. But when I set the returned cookies from site-B in the response header, the cookies are not visible in site-A. How do I get around to this problem?
3
2395
by: swetha123 | last post by:
hello, I don't know how to use cookies please help me in this I am using the dream weaver cs4 I designed the navigation bar to my page using dream weaver cs4 navigation bar contains Home, Retail Contact Us
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7738
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
6528
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
5861
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
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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.