• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Solved] Odd cookie expiration behaviour (Safari related?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Solved] Odd cookie expiration behaviour (Safari related?)


  • Subject: Re: [Solved] Odd cookie expiration behaviour (Safari related?)
  • From: Mike Schrag <email@hidden>
  • Date: Sat, 13 Jun 2009 15:27:55 -0400

NSTimestamp oneYear = new NSTimestamp().timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0);
NSTimestamp threeMonths = new NSTimestamp().timestampByAddingGregorianUnits(0, 3, 0, 0, 0, 0);
a_rsp.addCookie(new WOCookie("key_a_" + i, "v:" + i,   "/", null, oneYear, false));
a_rsp.addCookie(new WOCookie("key_b_" + i, "v:" + i++, "/", null, threeMonths, false));

I suspect my earlier issue is maybe a bug in how Safari handles the timeout duration value (possibly treating it as milliseconds rather than seconds)
I have not been able to actually reproduce the behavior with cookie timeouts with max-age in Safari 4, but I have heard at least one other report of this (specifically on Windows) ... I basically tested all the variants in every browser:

The final story is that the Netscape-style cookies are the most compatible in every browser (triggered, mostly, by using the NSTimestamp constructor) ... max-age seems to have some sketchy support in IE, and Safari 3 for Win appears to use the native cookie jar (Safari 4 changed to use CFNetwork's).

ms
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [Solved] Odd cookie expiration behaviour (Safari related?)
      • From: Mike Schrag <email@hidden>
References: 
 >Odd cookie expiration behaviour (Safari related?) (From: Mark Gowdy <email@hidden>)
 >Re: Odd cookie expiration behaviour (Safari related?) (From: Mike Schrag <email@hidden>)
 >[Solved] Odd cookie expiration behaviour (Safari related?) (From: Mark Gowdy <email@hidden>)

  • Prev by Date: Re: [OT] Tiger on MacBook Aluminium
  • Next by Date: Re: [Solved] Odd cookie expiration behaviour (Safari related?)
  • Previous by thread: [Solved] Odd cookie expiration behaviour (Safari related?)
  • Next by thread: Re: [Solved] Odd cookie expiration behaviour (Safari related?)
  • Index(es):
    • Date
    • Thread