Cannot read cookie values from within a frame

M

Marcos

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
 
D

Daniel Crichton

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
 
D

Dave Anderson

Daniel said:
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.
 
D

Dave Anderson

Marcos said:
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/why-won-t-my-session-variables-stick.html
 
M

Marcos

Daniel said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top