You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Alexei Danchenkov <da...@comail.ru> on 2001/12/14 18:15:25 UTC

libapreq. Apache::Cookie returns different 'expires' than CGI::Cookie?

Hello, All!
I wonder why my '$cookie->expires' for this code returns a
different result than the similar one with CGI::Cookie (commented).
The result is different in a way that some additional binary code is
being added to the expiry date.
$cookie = Apache::Cookie->new( $r,
  -name=>"access",
  -value=>$value,
  -expires=>"+10m" );
#    my $cookie = new CGI::Cookie(
  -name=>"access",
  -value=>$value,
  -expires=>"+10m" );
$expiry = $cookie->expires;
Any suggestions?
Cheers, Alexei
mailto:danchenkov@comail.ru


Re: libapreq. Apache::Cookie returns different 'expires' than CGI::Cookie?

Posted by darren chamberlain <dl...@users.sourceforge.net>.
Alexei Danchenkov <da...@comail.ru> said something to this effect on 12/14/2001:
> Hello, All!
> I wonder why my '$cookie->expires' for this code returns a
> different result than the similar one with CGI::Cookie
> (commented).  The result is different in a way that some
> additional binary code is being added to the expiry date.
>
> $cookie = Apache::Cookie->new( $r,
>   -name=>"access",
>   -value=>$value,
>   -expires=>"+10m" );
>
> #    my $cookie = new CGI::Cookie(
>   -name=>"access",
>   -value=>$value,
>   -expires=>"+10m" );
>
> $expiry = $cookie->expires;
>
> Any suggestions?

Maybe I'm just slow, but I can see the difference between the
two.  Can you elaborate?

(darren)

-- 
Blore's Razor:
    Given a choice between two theories, take the one
    which is funnier.