# session-id
Generate a COUNTER compliant user ID and session ID in the fields user_id
and session_id
.
The user ID can be one of the following, by order of priority :
- the user login (default field: login)
- the cookie ID (default field: cookie)
- both the IP (default field: host) and the user agent (default field: user-agent)
The session ID is generated by concatenating the date, hour of day, and user ID.
Default fields can be changed with the Session-ID-Fields header.
Examples of generated user IDs :
- john.doe
- 157.244.176.142|Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11
Examples of generated session IDs :
- 2019-06-09|08|john.doe
- 2018-12-25|00|157.244.176.142|Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11