This module assigns an identifier to clients by issuing cookies. The identifier can be accessed from the variables $uid_got and $uid_set further in the configuration:
Directive |
Description |
userid Context: http, server, location |
Enables or disables issuing and logging of cookies. The directive accepts four possible values:
Default value: userid off; |
userid_service Context: http, server, location |
Defines the IP address of the server issuing the cookie. Syntax: userid_service ip; Default: IP address of the server |
userid_name Context: http, server, location |
Defines the name assigned to the cookie. Syntax: userid_name name; Default value: The user identifier |
userid_domain Context: http, server, location |
Defines the domain assigned to the cookie. Syntax: userid_domain domain; Default value: None (the domain part is not sent) |
userid_path Context: http, server, location |
Defines the path part of the cookie. Syntax: userid_path path; Default value: / |
userid_expires Context: http, server, location |
Defines the cookie expiration date. Syntax: userid_expires date | max; Default value: No expiration date |
userid_p3p Context: http, server, location |
Assigns a value to the P3P header sent with the cookie. Syntax: userid_p3p data; Default value: None |