How do I add cookies to my website?

Hello, as you can see from the title, I am trying to add cookies to my website. The only reason I am trying to do it is so I can set up a offense (Really I am just gonna ban people who break rules) operation.

Hi, it depends on your backend. To set a cookie, the server sends a response header called Set Cookie.

You can Google ‘express set cookie’ or replace express in the search query with Fastify if you’re using one of the the new starters.

I don’t know if a way to do this with static sites on Glitch unfortunately.

Let us know how it goes.

1 Like

This might be helpful if you’re using javascript.

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