PDA

View Full Version : Can't set Cookie in IE6



sdevic
08-17-2007, 12:18 PM
Hi,

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;
//-->
</script>

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!
sdevic

jscheuer1
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.

sdevic
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:

http://dev.frnl.de/scotr/s.htm?id=test

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:
Devic

jscheuer1
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

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

Devic