Is it possible for a Dapp that uses the metamask/chrome to set up a browser cookie? or can a cookie set by another website like facebook, read some information or at least know that a dapp has been visited ?

1 Answer 1


A dApp consists of two different parts: the blockchain part and the more traditional www interface part.

The blockchain part has no idea about cookies, it's deterministic and can't communicate directly with the external world. All information has to come and go through nodes.

The more traditional www interface part is almost just like any other website. So it can set cookies and whatnot. The only difference is that it also has a component (web3) which can connect to a blockchain node to talk with the blockchain. Metamask is one option on how to facilitate this connections.

So, yes, your dApp can set and use cookies as the website is just like any other website plus some extra stuff.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.