474,044 Members | 13,292 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot read cookie values from within a frame

Hi,

This may or may not be a simple question, but I have been able to find
an answer to this issue in all my searches.

In an ASP application, I'm creating a cookie that stores a username
from pageA.asp

I then try to read the cookie from pageB.asp, which is inside a frame
of pageC.asp.

The problem is I can't read it from pageB.asp. Can anyone please help?

NOTE: If I make pageB.asp as a standalone page without being called
from the frame in pageC.asp, THEN I can read the cookie. But this is
not what I want.

If this wasn't clear please do let me know.

Thanks heaps,
Marcos

Aug 18 '06 #1
4 5727
Marcos wrote on 17 Aug 2006 20:42:32 -0700:
Hi,

This may or may not be a simple question, but I have been able to find
an answer to this issue in all my searches.

In an ASP application, I'm creating a cookie that stores a username
from pageA.asp

I then try to read the cookie from pageB.asp, which is inside a frame
of pageC.asp.

The problem is I can't read it from pageB.asp. Can anyone please help?

NOTE: If I make pageB.asp as a standalone page without being called
from the frame in pageC.asp, THEN I can read the cookie. But this is
not what I want.

If this wasn't clear please do let me know.

Thanks heaps,
Marcos
Are you using IE6 for testing? Is it a normal frame, or an iframe? IE6
blocks cookies to iframes as part of it's security.

Dan
Aug 18 '06 #2
Daniel Crichton wrote:
Are you using IE6 for testing? Is it a normal frame, or an
iframe? IE6 blocks cookies to iframes as part of it's
security.
That is only partially true. IE weighs several factors, including security
zone, machine settings, and P3P headers, when deciding whether to share
cookies (and thus sessions) across frames.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Aug 18 '06 #3
Marcos wrote:
This may or may not be a simple question, but I have been
able to find an answer to this issue in all my searches.
I assume you mean you have NOT been able...
In an ASP application, I'm creating a cookie that stores a
username from pageA.asp

I then try to read the cookie from pageB.asp, which is inside
a frame of pageC.asp.

The problem is I can't read it from pageB.asp. Can anyone please
help?
Strictly speaking, this is not an ASP issue. It is an Internet Explorer
issue. Specifically, IE 5.01 and higher.

To confirm that it is not an ASP issue, try using any browser that does not
use the IE engine, such as Opera or Firefox.

To address your IE woes, take a gander here:
http://classicasp.aspfaq.com/general...les-stick.html

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Aug 18 '06 #4

Daniel Crichton wrote:
>
Are you using IE6 for testing? Is it a normal frame, or an iframe? IE6
blocks cookies to iframes as part of it's security.
It's a normal frame and I'm using IE6.

I'm still having the issue by the way, so any thoughts would still be
appreciated.

Thanks.

Aug 21 '06 #5

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

Similar topics

1
11266
by: | last post by:
How does one read and write the cookie expiration date. At the moment my code is returning a value BUT a garbled value: '//Write cookie... Response.Cookies("Propsect").Expires = Date() + 1 '//Read cookie... ExpDate = Request.cookies("Propsect") Response.write "Prospect expiry date: " & expDate & "<br>"
0
2733
by: bb | last post by:
Hello In my Session_OnStart in Global.asa, I am setting some cookies. One of them, I set as follows: dim UserID UserID = Request.ServerVariables("LOGON_USER") Response.Cookies("User")("ID") = UCASE(UserID) When I immediately log the cookie value retrieved from
8
2232
by: rushik | last post by:
Dear all, We are using cookie base access management in our business intranet portal. We are setting user level cookies at the time of successfull login in the system, and after login we are checking the cookie 'user id' and 'page id'; if user has permission of the particular page he/she is allowed, otherwise throw the access denied message. For almost all the machines we are not facing problem in this structure; because cookies can...
3
2315
by: chuck rudolph | last post by:
Folks, Can anyone confirm that my understading is correct and maybe shed some light on why it's as it is. (I'm guessing security, but that seems weak to me.) The asp.net web application is using forms authentication. If I create an FormsAuthTicket with userdata in the approprite place. Then encode it and create a cookie, add it to the response.cookie collection and use it all is well.
0
1483
by: tshad | last post by:
I can add a cookie fine, but I can't seem to figure out how to change the value of a cookie and save it back. My code looks like: if (passwordSaveCookie.checked) then If Request.Cookies("User") is nothing Then Dim cookie As New HttpCookie("User") cookie.Values.Add("UserName",UserName.Text) cookie.Values.Add("UserFirstName",dbReader("FirstName"))
1
1328
by: Con | last post by:
Hi, I'm gettting a traceback when I attempt to read the MySQLdb docs after installation on Mac OS X 10.5.2: BEGIN TRACEBACK: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site.py", line 346, in __call__ return pydoc.help(*args, **kwds)
2
1676
by: phpmagesh | last post by:
Hi to all, I am creating a registration page, like name, last name, Date of birth, ph number, address etc.. When i click submit button all the values are taking to validation page using POST method. If any field is blank then script will say fill all the fields, then redirect to the registration page itself, During this process when redirecting to registration page i should get the existing values which i typed already.
2
2525
by: ramuksasi | last post by:
Hi, I am unable to read a cookie value from the cookies. i have set cookie value from javascript in scripting side and try to read cookie value from coding part ie. default.aspx.vb. i have shown my javascript page below: <pre lang="cs">function setcookie() { var today=new Date(); var expire=new Date(); var ndays; if(ndays==null || ndays==0)ndays=1;
0
10546
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10337
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
12140
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...
0
11602
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...
1
12023
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
6837
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5416
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
4944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3971
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.