Use of cookie best practice

Hi,

Mabye a stupid question, but lets say I want to set a cookie with the users email as the value when its provided (encoded)

Do i need to first set that cookie in the browser, in the webcontainer with a javascript or template, and then afterwards rewrite it with Cookiemonster on the serverside.

Is that the workflow, or “how it works” ?

Thanks !

No, you can set the cookie from the server right away, there is no any point in doing it via JS first.