httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul G. Weiss" <p...@weiss.name>
Subject Bug in src/apreq_cookie.c
Date Mon, 05 Jan 2004 04:44:34 GMT
I think I've discovered a problem with apreq_cookie.c.

The expires method isn't working.  The problem appears to be that the 
apr_time_now() and apr_rfc822_date() deal with time values in 
microseconds, while max_age is in seconds.  So the line that currently is:

      apr_rfc822_date(expires, c->max_age + apr_time_now());

should be changed to

      apr_rfc822_date(expires, c->max_age*((apr_int64_t)1000000) 
+ apr_time_now());

Mime
View raw message