HttpUseridModule
m (→References: Update link to the original documentation) |
(→Directives) |
||
| Line 22: | Line 22: | ||
= Directives = | = Directives = | ||
== userid == | == userid == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Enables or disables issuing cookies and logging requested cookies: | Enables or disables issuing cookies and logging requested cookies: | ||
| Line 34: | Line 30: | ||
* log - do not send cookies, but write down incoming cookies to log; | * log - do not send cookies, but write down incoming cookies to log; | ||
* off - do not send cookies, and don't write them to logs; | * off - do not send cookies, and don't write them to logs; | ||
| − | |||
== userid_domain == | == userid_domain == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_domain.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Assigns the domain for cookie. The parameter "none" doesn't issue domain for cookie. | Assigns the domain for cookie. The parameter "none" doesn't issue domain for cookie. | ||
| − | |||
== userid_expires == | == userid_expires == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_expires.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Sets the expiration time for the cookie. | Sets the expiration time for the cookie. | ||
The parameter set & send-out browser expiration time for cookie. Value "max" assigns the time on 31 December, 2037, 23:55:55 gmt. This is the maximum time that older browsers understand. | The parameter set & send-out browser expiration time for cookie. Value "max" assigns the time on 31 December, 2037, 23:55:55 gmt. This is the maximum time that older browsers understand. | ||
| − | |||
== userid_name == | == userid_name == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_name.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Assigns name to cookie. | Assigns name to cookie. | ||
| − | |||
== userid_p3p == | == userid_p3p == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_p3p.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Directive assigns value for the header P3P, which will sent together with cookie. | Directive assigns value for the header P3P, which will sent together with cookie. | ||
== userid_path == | == userid_path == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_path.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Sets the cookie path. | Sets the cookie path. | ||
== userid_service == | == userid_service == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_service.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Directive assigns the IP address of the server which gave out cookie. | Directive assigns the IP address of the server which gave out cookie. | ||
Revision as of 17:53, 30 April 2012
Contents |
Synopsis
The module ngx_http_userid_module hands out cookies which are used for the purposes of
identifying clients upon subsequent requests. For logging it is possible to use variables
$uid_got and $uid_set.
Remark: keep in mind variables $uid_got and $uid_set are not accessible in SSI,
because the SSI filter module's processing occurs earlier in the chain than the userid filter.
This module is compatible with mod_uid for Apache.
Example
userid on; userid_name uid; userid_domain example.com; userid_path /; userid_expires 365d; userid_p3p 'policyref="/w3c/p3p.xml", CP="CUR ADM OUR NOR STA NID"';
Directives
userid
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid.txt
Enables or disables issuing cookies and logging requested cookies:
- on - enables version 2 cookies and logs them;
- v1 - enables version 1 cookies and logs them;
- log - do not send cookies, but write down incoming cookies to log;
- off - do not send cookies, and don't write them to logs;
userid_domain
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_domain.txt
Assigns the domain for cookie. The parameter "none" doesn't issue domain for cookie.
userid_expires
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_expires.txt
Sets the expiration time for the cookie.
The parameter set & send-out browser expiration time for cookie. Value "max" assigns the time on 31 December, 2037, 23:55:55 gmt. This is the maximum time that older browsers understand.
userid_name
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_name.txt
Assigns name to cookie.
userid_p3p
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_p3p.txt
Directive assigns value for the header P3P, which will sent together with cookie.
userid_path
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_path.txt
Sets the cookie path.
userid_service
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_userid_module/userid_service.txt
Directive assigns the IP address of the server which gave out cookie. If not set, version 1 cookies set to zero, and for version 2 cookies the IP address of server.










