Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   iframe cookie issue. (http://www.go4expert.com/forums/iframe-cookie-issue-t7393/)

leouser 19Nov2007 22:29

iframe cookie issue.
 
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 20Nov2007 10:02

Re: iframe cookie issue.
 
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??


All times are GMT +5.5. The time now is 18:36.