mod_userid
Introduction
mod_userid generates user id for client identification.
Module Configuration
Description
conf/mod_userid/mod_userid.conf
Config Item | Description |
---|---|
Basic.DataPath | String Path of rule configuration |
Log.OpenDebug | Boolean Debug flag of module |
Example
[Basic]
DataPath = mod_userid/userid_rule.data
[Log]
OpenDebug = true
Rule Configuration
Description
conf/mod_userid/userid_rule.data
Config Item | Description |
---|---|
Version | String Version of config file |
Config | Object Rules for each product |
Config{k} | String Product name |
Config{v} | Object A list of rules |
Config{v}[] | Object A rule |
Config{v}[].Cond | String Condition expression, See Condition |
Config{v}[].Params.Name | String The cookie name |
Config{v}[].Params.Domain | String The cookie domain |
Config{v}[].Params.Path | String The cookie path |
Config{v}[].Params.MaxAge | Integer The cookie max age |
Example
{
"Version": "2019-12-10184356",
"Config": {
"example_product": [
{
"Cond": "req_path_prefix_in(\"/abc\", true)",
"Params": {
"Name": "bfe_userid_abc",
"Domain": "",
"Path": "/abc",
"MaxAge": 3153600
},
"Generator": "default"
},
{
"Cond": "default_t()",
"Params": {
"Name": "bfe_userid",
"Domain": "",
"Path": "/",
"MaxAge": 3153600
}
}
]
}
}