Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cookies.md - 修改错别字 #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/usage/cookies.md
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ const counter = useCookie('counter', {

💡**注意:** cookie的存储模型规定如果同时设置了`expires``maxAge`,以`maxAge`优先。但是并不是所有的客户端都遵守这一规定,所以同时设置时应该让他们都指向相同的日期和时间!

如果都不社会`expires``maxAge`,那么cookie将仅用于会话,当用户关闭浏览器的时候被移除。
如果都不设置`expires``maxAge`,那么cookie将仅用于会话,当用户关闭浏览器的时候被移除。

### [`httpOnly`](https://v3.nuxtjs.org/docs/usage/cookies#httponly)

@@ -130,4 +130,4 @@ export default (req, res) => {
// Send JSON response
return { counter }
}
```
```