On November 20, 2009 12:53:55 pm Alex Vandiver via RT wrote:
Show quoted text> > * By default, the cookie now prints both 'Expires' and 'Max-Age' fields.
> > Their display can be controlled via the show_expires/show_max_age
> > methods or the -show_expires/-show_max_age new() arguments.
>
> I somewhat agree with Mark on this -- I'm not convinced that such
> fine-grained control is necessary. In my mind, sending both is unlikely
> to ever cause problems.
I also agree. I couldn't think of an example where having both would cause
harm, buuut I thought that giving peeps the control if they so desire was the
ultimate insurance against gotchas. But I agree, we can always take that out.
Show quoted text> > * If the time to live is specified as a date string, the module
> > Date::Parse is used to convert it into a timestamp.
>
> This _is_ going to possibly cause problems -- Date::Parse isn't in core,
> but CGI.pm is.
Very good point.
Show quoted text> The options which provide similar functions, which _are_
> in core, are Time::Piece->strptime or Time::Local::timegm. Hauling in
> Time::Piece seems heavier-weight, but the implementation will be easier.
> Thoughts?
Time::Piece would be good. And this will only happen in the weird cases where
someone would enter the expiry date as an absolute date instead of a delta.
I'll be offline for the next 3 days, but I'll try to bring in those changes
asap. Or any of you can fork my github branch and play with it, if you so
desire. :-)
Thanks!
`/anick