- Sep 29, 2000
- 70,150
- 5
- 0
I received guidance in another thread, but know more about this issue now. I have a .net 2.0 app on IIS trying to write cookies. It's very vanilla. The cookie writing and reading works fine in any browser. The site is located at server2.hosting.<webhost>.com with a url like server1.hosting.<webhost>.com/App.aspx
I have another server at www.johndoe.com. The server's hard address is server5.hosting.<webhost>.com, but we're using the johndoe.com domain name.
Here's the problem: On www.johndoe.com we have some pages and on one of them is an iframe pointing to server1.hosting.<webhost>.com/App.aspx. When one browses to www.johndoe.com and via the iframe navigates to the app.aspx page, cookies are completely useless in IE; they do not work in the least. In firefox they work flawlessly.
I know this is some domain issue, but I cannot seem to solve it based on any google readings or code fiddling. My guess is that a visit to app.aspx within the iframe does issue cookies to johndoe.com and internet explorer says no thank you, so then when app.aspx asks for them again, there is nothing that IE can feed back.
So I'm not trying to have app.aspx write to anything on johndoe, but it's like the browser is too stupid to realize that the iframe is a separate site and handle it separately, whereas firefox can.
And, sorry, telling users to use firefox isn't an option, I'm afraid!
I have another server at www.johndoe.com. The server's hard address is server5.hosting.<webhost>.com, but we're using the johndoe.com domain name.
Here's the problem: On www.johndoe.com we have some pages and on one of them is an iframe pointing to server1.hosting.<webhost>.com/App.aspx. When one browses to www.johndoe.com and via the iframe navigates to the app.aspx page, cookies are completely useless in IE; they do not work in the least. In firefox they work flawlessly.
I know this is some domain issue, but I cannot seem to solve it based on any google readings or code fiddling. My guess is that a visit to app.aspx within the iframe does issue cookies to johndoe.com and internet explorer says no thank you, so then when app.aspx asks for them again, there is nothing that IE can feed back.
So I'm not trying to have app.aspx write to anything on johndoe, but it's like the browser is too stupid to realize that the iframe is a separate site and handle it separately, whereas firefox can.
And, sorry, telling users to use firefox isn't an option, I'm afraid!