Results 1 to 5 of 5

Thread: Can't set Cookie in IE6

  1. #1
    Join Date
    Aug 2007
    Location
    Germany
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Can't set Cookie in IE6

    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:

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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2007
    Location
    Germany
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    Devic

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here are the results in IE 6:

    Code:
    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
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Aug 2007
    Location
    Germany
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah! Thanks, that's great news...

    Devic

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •