-
Notifications
You must be signed in to change notification settings - Fork 8
feat: as default not to log the session val #17
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
95a830e
Release 2.1.1
popomore 4d3b4ef
refactor: upgrade koa-session, support egg2. [BREAKING CHANGE] (#10)
dead-horse 882049e
Release 3.0.0
dead-horse b487d2c
docs: update readme to async function
dead-horse c47087c
feat: listen session events and warn (#11)
dead-horse 0bb2177
Release 3.1.0
dead-horse 452809f
doc: fix miss backticks (#12)
supperchong 9c8bdf1
feat: warn if httpOnly set to false (#13)
dead-horse 3281b99
chore: update travis
atian25 d3a57dd
test: add sameSite=none test case (#14)
fengmk2 792c61f
deps: koa-session@6 (#15)
dead-horse 8fc59ba
Release 3.2.0
dead-horse d6dd5bb
test: add test case for session maxAge (#16)
dead-horse 889a571
feat: as default not to log the session val
clChenLiang 7b15ef5
fix: add break changes
clChenLiang b1dac1e
feat: ci
clChenLiang a5bc34d
fix: lint
clChenLiang f55daf4
doc: 配置项说明
clChenLiang a452a43
docs: 优化 github 阅读
clChenLiang de01cc6
Merge branch 'master' into master
clChenLiang 86b5021
fix: lint
clChenLiang 3e242c9
Merge branch 'master' of https://github.com/clChenLiang/egg-session
clChenLiang ac66065
feat: mock 日志
clChenLiang 7b0eadd
feat: more time for log
clChenLiang fba5392
fix: ci 增加 invalid
clChenLiang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,5 @@ exports.session = { | |
| httpOnly: true, | ||
| encrypt: true, | ||
| // sameSite: null, | ||
| logValue: true, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
test/fixtures/logValue-false-session/app/controller/home.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| 'use strict'; | ||
|
|
||
| exports.get = function* (ctx) { | ||
| ctx.body = ctx.session; | ||
| }; | ||
|
|
||
| exports.set = function* (ctx) { | ||
| ctx.session = ctx.query; | ||
| ctx.body = ctx.session; | ||
| }; | ||
|
|
||
| exports.setKey = function* (ctx) { | ||
| ctx.session.key = ctx.query.key; | ||
| ctx.body = ctx.session; | ||
| }; | ||
|
|
||
| exports.remove = function* (ctx) { | ||
| ctx.session = null; | ||
| ctx.body = ctx.session; | ||
| }; | ||
|
|
||
| exports.maxAge = function* (ctx) { | ||
| ctx.session.maxAge = Number(this.query.maxAge); | ||
| ctx.body = ctx.session; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| 'use strict'; | ||
|
|
||
| module.exports = function(app) { | ||
| app.get('/get', 'home.get'); | ||
| app.get('/set', 'home.set'); | ||
| app.get('/setKey', 'home.setKey'); | ||
| app.get('/remove', 'home.remove'); | ||
| app.get('/maxAge', 'home.maxAge'); | ||
| }; |
6 changes: 6 additions & 0 deletions
6
test/fixtures/logValue-false-session/config/config.default.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| 'use strict'; | ||
|
|
||
| exports.keys = 'keys'; | ||
| exports.session = { | ||
| logValue: false, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "name": "logvalue-false-session" | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only 了