Search⌘ K
AI Features

Challenge: Set and View a Cookie

Explore how to create and access cookies within AdonisJs by setting a cookie with a specific key and value, then returning it through defined routes and controllers. Understand the use of request.cookie method for handling cookie data.

Problem statement

Set a cookie with key product_id and value 1201, then return the value.

Expected

...