From 3f51c7eb67e427a94ad22f50b8bc371fe2eff947 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Fri, 15 Apr 2011 20:14:15 +0000 Subject: [PATCH] via Matthew Sporleder - domain is required in the CO flag or cookies aren't set. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1092799 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.html.en | 2 +- docs/manual/rewrite/flags.html.en | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index e3dbc67be5..a6fd366f5d 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -1088,7 +1088,7 @@ cannot use $N in the substitution string! cookie|CO=NAME:VAL Sets a cookie in the client browser. Full syntax is: - CO=NAME:VAL[:domain[:lifetime[:path[:secure[:httponly]]]]] details ... + CO=NAME:VAL:domain[:lifetime[:path[:secure[:httponly]]]] details ... diff --git a/docs/manual/rewrite/flags.html.en b/docs/manual/rewrite/flags.html.en index b2371060a4..6042dd6ae9 100644 --- a/docs/manual/rewrite/flags.html.en +++ b/docs/manual/rewrite/flags.html.en @@ -115,19 +115,17 @@ skipped.

CO|cookie

The [CO], or [cookie] flag, allows you to set a cookie when a particular RewriteRule -matches. The argument consists of three required fields and five optional +matches. The argument consists of three required fields and four optional fields.

The full syntax for the flag, including all attributes, is as follows:

-[CO=NAME:VALUE:domain:lifetime:path:secure:httponly] +[CO=NAME:VALUE:DOMAIN:lifetime:path:secure:httponly]

-

You must declare a name and value for the cookie to be set.

- -

You may optionally also set the following values:

+

You must declare a name, a value, and a domain for the cookie to be set.

Domain
@@ -137,8 +135,11 @@ such as .example.com. It must be at least two parts separated by a dot. That is, it may not be merely .com or .net. Cookies of that kind are forbidden by the cookie security model. -
The default value for the domain is the current domain.
+
+

You may optionally also set the following values:

+ +
Lifetime
The time for which the cookie will persist, in minutes.
A value of 0 indicates that the cookie will persist only for the -- 2.49.0