Caddy Tracking Cookie

Does caddy have a way to assign each user with a tracking token/cookie, something kinda like cfuid? I looked into the docs and saw {request_id}, but it specifically says not to use it for that purpose. Does anyone have any alternatives?

Looks like Cloudflare use cfuid to distinguish between known-good and other users behind a shared IP address (like public WiFi).

What’s your purpose for tracking your users? Do you need this for analytics or are you actually tracking sessions for e.g. filling a shopping cart prior to login/signup?

For the former, I’d recommend googling some website analytics packages. For the latter, I’d suggest you have your app assign new users a session cookie when they land (and maybe expire them after a certain amount of time without converting so you don’t end up with infinite outstanding sessions).

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.