Technology Questions

Go Back   Technology Questions > Software Questions > Internet > Internet Explorer

Internet Explorer Discuss IE7 or any other IE version.



Reply
 
LinkBack Thread Tools
  #1  
Old 05-06-2007, 08:55 AM
Steven Saporta
Newsgroup Contributor
 
Posts: n/a
IE7 problem - cookies lost after open and close page in Internet Z

Can anyone help with this problem?

Here are the steps to replicate an error in which IE7 discards cookies after:
- A page is opened in the Local Machine zone.
- Another page is opened in the Internet zone.
- The page in the Internet zone is closed.

To replicate the error:
1. Place the files test1.html and test2.html (source code is below) in a
folder on your local hard disk.
2. Double-click test1.html to open it in the Local Machine zone in IE7.
3. Observe that the cookie "foo" has the value "goo".
4. Click the link to open http://www.midicorp.com (a webpage in the Internet
zone) in a new window.
5. After the page opens, close the new window.
6. Click the link to go to the next page (test2.html).
7. On test2.html, observe that document.cookie is now the empty string.

Interesting facts:
- If you don't open a page in the Internet zone before proceeding to
test2.html, cookies are NOT lost.
- If you open a page in the Internet zone but don't close the window,
cookies are NOT lost.
- Adding the Mark of the Web to test1.html and test2.html does NOT prevent
losing cookies.

-----------------------------
SOURCE OF TEST1.HTML
-----------------------------
<script>
document.cookie = "foo=goo";
document.write ("On test1.html, cookies are: " + unescape (document.cookie));
</script>
<br>
<a href="http://www.midicorp.com" target="_new">Open midicorp.com in a new
window</a>
<br>
<a href="test2.html">Go to next page</a>


-----------------------------
SOURCE OF TEST2.HTML
-----------------------------
<script>
document.write ("On test2.html, cookies are: " + unescape (document.cookie));
</script>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-06-2007, 08:55 AM
  #2  
Old 05-06-2007, 09:39 AM
Robert Aldwinckle
Newsgroup Contributor
 
Posts: n/a
Re: IE7 problem - cookies lost after open and close page in Internet Z

"Steven Saporta" <StevenSaporta@discussions.microsoft.com> wrote in message
news:F979006D-CCBC-410A-AEB2-8440E398DE83@microsoft.com...
> Can anyone help with this problem?



I think you might find more interest in it on the MSDN forum for IE web development

http://forums.microsoft.com/MSDN/Sho...D=923&SiteID=1


Good luck

Robert Aldwinckle
---


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3  
Old 12-31-2008, 06:33 PM
Registered User
 
Join Date: Dec 2008
Posts: 1
mdr478 is on a distinguished road
Re: IE7 problem - cookies lost after open and close page in Internet Z

did you ever get an answer to this?

I am getting a similar problem with xp and ie7
using javascript I open a window

"window.open(...)"

when I close it my cookies disappear. (sometimes)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet explorer 7-problem with capitalone website/cookies disabl Danidigs830 Windows XP 5 02-21-2008 06:50 AM
problem when trying to close a page Rich Internet Explorer 3 01-31-2008 02:01 PM
internet logging off if I close just one page ducknut1 Internet Explorer 0 09-28-2007 08:50 PM
Internet explorer close when i see a web page of NCBI Markemis Internet Explorer 4 05-28-2007 12:20 PM
Internet explorer why does it close down every time I close a page creativpresentations Internet Explorer 3 05-06-2007 07:15 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 11:03 PM.


2003 - 2010 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0