DEV Community

Calvin
Calvin

Posted on

2 1

🎥 Video Snippets: [3 => Cookies] 🍪

At its core, a cookie is a name-value pair. We can do several things with cookies. From determining when the cookie can expire to whether the cookies can be sent along with certain user requests to different domains, there are many possibilities.

A cookie can be set with one line of code:

document.cookie= ${key}=${value};

Source: Smart Understanding Browser Cookies

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️