iframe cookie issue.

leouser's Avatar, Join Date: Nov 2007
Newbie Member
Here is the scenario:
1. Clear your IE cash and cookies.
2. Go to tutorial-index.com
3. You will see that the site recorded you a tutorial-index cookie.
4. Clear the cookies and cash again.
5. Create HTM file and put the following code in it:
<html xmlns='http://www.w3.org/1999/xhtml' >
<head><title></title></head>
<body><iframe src="http://www.tutorial-index.com" height="1000" width="1000"></iframe></body>
</html>
6. Run just created file.
7. Now check your cookie folder. RESULT: no cookie.

I've been fighting with this iFrame vs. cookie issue for over 2 days. I cannot pinpoint the problem. Anyone can explain to me why it's happening and how I can fix the issue?
pradeep's Avatar, Join Date: Apr 2005
Team Leader
You file main HTML page is on a different domain and the iframe src HTML is from a different domain, by thumb rule a domain cannot access the cookies of another domain. Also, what browser are you using??