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.
We'll cover the following...
We'll cover the following...
Problem statement
Set a cookie with key product_id and value 1201, then return the value.