View Full Version : Can't set Cookie in IE6

08-17-2007, 12:18 PM

following script (bit simplified) will work (ie.: set a cookie) in FF, IE7, Safari... BUT does not set the cookie in IE6 at all:

<script language="JavaScript" type="text/javascript">
document.cookie = "ref=" + document.referrer + "\t" + document.URL;

Any idea what might be the problem? Or ist it just my IE6 version (running as a "stand alone" version parallel to an installed IE7).

Thanks for any ideas!

08-17-2007, 02:25 PM
My stand alone IE 6 won't set cookies either, don't worry about it unless a real installation of IE 6 has a problem with it. As long as IE 7 has no problem, a real IE 6 probably won't either. I have a real IE 6 that I could test your page with if it is live and you can tell me what the cookie is supposed to do.

08-17-2007, 03:26 PM
Hey, that's a great help:

I would really appreciate if you could go this this website to test the cookie in your IE6:


It's a testpage, and the what it does is setting a cookie with the referreing url, landing page url, id and date like this:

cookie name: id
cookie value: "referring.url/$/www.landingpage.com/abc.html/example.html/$/value_of_id/$/date"

("/$/" is just used as a delimiter)

If you click on "View Results" on that page then the next page will show the cookie that was set before. It has an expiration time of 30 days, so you may want to delete it manually ;)

Many thanks, I wish I would have found this forum earlier :cool:

08-17-2007, 03:44 PM
Here are the results in IE 6:

There are 1 Cookies set:

Cookie id: http://www.dynamicdrive.com/forums/showthread.php?p=105295/$/http://dev.frnl.de/scotr/s.htm?id=test/$/test/$/17.08.2007

08-17-2007, 03:51 PM
Yeah! Thanks, that's great news...