Current location: Hot Scripts Forums » Programming Languages » ASP » cant read cookies from outside sites placed in an iframe


cant read cookies from outside sites placed in an iframe

Reply
  #1 (permalink)  
Old 12-23-04, 07:44 AM
rdnpa rdnpa is offline
New Member
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cant read cookies from outside sites placed in an iframe

How can i read cookies from a web page that is put in an iframe?

For instance, I put http://www.programmingtalk.com in a iframe in a page in my localhost and it reads the cookies and recognises me.

But when i put my website in an iframe in localhost, it does not read the cookies.

How come?
How can i set cookies that can be read within an iframe?
Reply With Quote
  #2 (permalink)  
Old 12-23-04, 09:48 AM
psi-za psi-za is offline
New Member
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Depends on wot u're trying to do...

Can't be done!
Unless I've misunderstood what you're trying to do, but even if I am, you are trying to access cookies on one domain to another, which isn't possible. Cookies are generally domain specific.

I assume you're trying to load cookies from a server side script. The IFRAME is only executed on a page load, and a page only begins to load once the server side script starts outputting markup to the browser. The contents of the IFRAME are not available to your script, as the loading of the IFRAME is a client side process.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing iframe src property not working in Safari AmberLR JavaScript 1 04-08-09 10:41 AM
Link exchange offer – 5 sites. program-ace Traffic Exchange 0 09-05-04 06:58 AM
forcing an iframe to scrolldown as it gets filled with content davidklonski JavaScript 2 07-20-04 08:27 AM
Run of Site link exchange with webmaster sites Philarmon Traffic Exchange 0 05-07-04 01:43 PM
Can't seem to get the cookies to the cookie_jar benny666 Perl 1 10-28-03 04:54 AM


All times are GMT -5. The time now is 03:11 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.