https://github.com/imufeng/nextjs-app-cookie
https://github.com/imufeng/nextjs-app-cookie
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imufeng/nextjs-app-cookie
- Owner: iMuFeng
- Created: 2023-06-03T08:09:37.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-03T08:26:57.000Z (about 3 years ago)
- Last Synced: 2025-08-20T00:30:29.585Z (11 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`import { cookies } from "next/headers"`
If your function for obtaining cookies is not inside the app directory, when set-cookie is used, other cookies will be discarded.
Create a new cookie named "cookie1" manually in the console with any value, and then refresh this page.