www.webdeveloper.com
Results 1 to 4 of 4

Thread: Browsers handle Cookies Differently

  1. #1
    Join Date
    Dec 2008
    Posts
    30

    Browsers handle Cookies Differently

    I've been stumped by a cookie issue that I need settled quickly. I am making an offline site that needs it's own bookmark system. This I'm trying to accomplish through javascript and cookies. You go to a page, click a button, it saves a cookie, then at some point you click a link to the bookmark page and it shows you all the bookmarks you've selected.

    I've got this to work perfectly... in Firefox. I need it to work in Internet Explorer. But when I try the files in IE the only bookmarks that save are the ones in the same directory as the bookmark page.

    So I've come to the conclusion that firefox and IE handle cookies differently. But I can't figure out what extra restriction IE has that is blocking this. Can anyone help me out with this?

    I've attached a small version of what I'm trying to accomplished. 7 pages over three directories and the bookmark page. They are put in frames because that's what I need so if you care to peek start with UntitledFrameset-3.html. If you want to contact me directly: hume.tony@gmail.com. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Set the path to the root directory; setting it to null could cause the problem.
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Dec 2008
    Posts
    30
    All paths and domains are set to the root directory and still nothing.

  4. #4
    Join Date
    May 2013
    Posts
    2

    cookies

    The different browser engines have different interpretations of domain matching, handle parameters in paths differently and differ in their rules for same domain policy checking.

    I have not thoroughly looked through your code, but if your page has parameters, and/or if you expect your cookie to work on different domain names, then you might want to read the article How Different Browsers Handle Cookies Differently.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles