You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2025. It is now read-only.
Dmytro edited this page Jan 29, 2017
·
2 revisions
Cookie is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing wiki.
You can get access to work with cookie using cookie methods of request object:
request.cookies(); // adds cookies to the maprequest.cookie("example"); // get access to the cookie via namerequest.cookie("example", "value"); // set cookie with a valuerequest.cookie("example", "value", 1000); // set cookie with max-age termrequest.removeCookie("example"); // remove cookie