<dd>A value of 0 indicates that the cookie will persist only for the
current browser session. This is the default value if none is
specified.</dd>
+<dd>A negative value causes the cookie to be unset in the browser.</dd>
<dt>Path</dt>
<dd>The path, on the current website, for which the cookie is valid,
long exp_min;
exp_min = atol(expires);
- if (exp_min) {
+ if (exp_min > 0) {
apr_time_exp_gmt(&tms, r->request_time
+ apr_time_from_sec((60 * exp_min)));
exp_time = apr_psprintf(r->pool, "%s, %.2d-%s-%.4d "
tms.tm_year+1900,
tms.tm_hour, tms.tm_min, tms.tm_sec);
}
+ else if (exp_min < 0) {
+ exp_time = "Thu, 01 Jan 1970 00:00:00 GMT";
+ }
}
cookie = apr_pstrcat(rmain->pool,