in reply to IE cookies problem

I just had a look at my own cookie generating code, which is working fine with IE.

Curiously, it uses a "cookies" parameter rather than "cookie", and a list rather than a single cookie object.

Ie:

print $cgi->redirect ( -url => "login.pl?url=$loginurl", -cookies => [GatekeeperCookie::theCookie()], );

This may or may not be significant. As you're currently investigating this area, your experimentation and feedback would contribute to my understanding too!

Replies are listed 'Best First'.
Re^2: IE cookies problem
by jck (Scribe) on Jul 13, 2007 at 17:19 UTC
    thank you for the suggestion - just to close the loop on this option - i tried the change to cookies and using an array, and it didn't affect it at all - still worked for Moz, and not for IE....see above for the time fix!! still scratching my head on this one!!
      I had similar problems, while developing my own Web Shop solution. Problem got fixed by significantly increasing the "cookie lifetime", namely from 43200 (12 hours) to 10000000 (about 2777 hours). Seems to be an issue in the MS S..t ?
        well, as i pointed out, the fix - for my situation, at least - was to increase the expiration time from 1hr to 2hrs. non-IE browsers seem to register 2hrs, and IE sets the cookie to one hour from the actual current time. my server time is "close" to my local time (the host can't seem to keep the time sync'd with reality!) but this is much longer than i want - i'd prefer 20 minutes, but i can't seem to get that. 12 hours and 2700 hours is way more than i want!! would it be more reasonable to generate the localtime, add 20 minutes to that, and directly assign that time in the cookie??
        I realize this is an old post. I am adding my comment in case it helps people who read this post in the future. I faced this problem with IE not setting the cookies every now and then; the problem would disappear after a few hours. It turned out the reason was that there were underscores in the name of the cookie. Removing them solved the problem!