Skip to content

Commit

Permalink
docs: add migrate from 5.x to 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed Apr 28, 2020
1 parent 6c9df06 commit e630f73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
$ npm install koa-session
```

## Notice

6.x changed the default cookie key from `koa:sess` to `koa.sess` to ensure `set-cookie` value valid with HTTP spec.[see issue](https://github.com/koajs/session/issues/28). If you want to be compatible with the previous version, you can manually set `config.key` to `koa:sess`.

## Example

View counter example:
Expand Down

0 comments on commit e630f73

Please sign in to comment.