notename = apr_pstrcat(rmain->pool, var, "_rewrite", NULL);
apr_pool_userdata_get(&data, notename, rmain->pool);
- if (data == NULL) {
- cookie = apr_pstrcat(rmain->pool,
- var,
- "=",
- val,
- "; path=",
- (path)? path : "/",
- "; domain=",
- domain,
- (expires)? "; expires=" : NULL,
- (expires)?
+ if (data == NULL) {
+ cookie = apr_pstrcat(rmain->pool,
+ var,
+ "=",
+ val,
+ "; path=",
+ (path)? path : "/",
+ "; domain=",
+ domain,
+ (expires)? "; expires=" : NULL,
+ (expires)?
ap_ht_time(r->pool,
r->request_time +
apr_time_from_sec((60 *
atol(expires))),
"%a, %d-%b-%Y %T GMT", 1)
: NULL,
- NULL);
+ NULL);
/*
- * XXX: should we add it to err_headers_out as well ?
- * if we do we need to be careful that only ONE gets sent out
- */
+ * XXX: should we add it to err_headers_out as well ?
+ * if we do we need to be careful that only ONE gets sent out
+ */
apr_table_add(rmain->err_headers_out, "Set-Cookie", cookie);
apr_pool_userdata_set("set", notename, NULL, rmain->pool);
rewritelog(rmain, 5, "setting cookie '%s'", cookie);
}
else {
- rewritelog(rmain, 5, "cookie '%s' is already set..skipping", var);
+ rewritelog(rmain, 5, "skipping already set cookie '%s'", var);
}
}
}