Why it matters
The best-known rule is European. Article 5(3) of the EU's ePrivacy Directive, as amended in 2009, allows storing or reading information on a user's device only with their consent, after clear and comprehensive information about the purposes. The exception is storage that is strictly necessary to provide a service the user explicitly asked for, or to transmit a communication. Each EU country puts this into its own law.
Consent here means what the GDPR says it means: freely given, specific, informed and unambiguous, by a statement or a clear affirmative action (Article 4(11)). Withdrawing it must be as easy as giving it (Article 7(3)). That is why a banner with pre-ticked boxes, or no way to say no, falls short.
Malaysia's PDPA does not mention cookies. Its general rules still cover any personal data your cookies collect, so say in your privacy notice what your website tracks and why.
Example
A Malaysian online shop that also sells to Europe sets its analytics and advertising cookies to stay off until a visitor clicks "Accept", with a "Reject" button just as easy to find. The shopping cart cookie runs without asking, because the cart is the service the visitor asked for.