Skip to content

Conversation

@natebwangsut
Copy link
Contributor

@natebwangsut natebwangsut commented Aug 17, 2021

Please provide enough information so that others can review your pull request:

Should fix #1492

Explain the details for making this change. What existing problem does the pull request solve?

returned session should not have gotten their ID refreshed if s.Storage.Get(id) return nil, otherwise it is unable for session to be Save()

@welcome
Copy link

welcome bot commented Aug 17, 2021

Thanks for opening this pull request! 🎉 Please check out our contributing guidelines. If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

@natebwangsut natebwangsut changed the title 🐛 session should not regenerate the ID in case Get() returned nil WIP: 🐛 session should not regenerate the ID in case Get() returned nil Aug 17, 2021
@natebwangsut natebwangsut marked this pull request as draft August 17, 2021 19:29
@natebwangsut natebwangsut changed the title WIP: 🐛 session should not regenerate the ID in case Get() returned nil 🐛 session should not regenerate the ID in case Get() returned nil Aug 17, 2021
@natebwangsut natebwangsut marked this pull request as ready for review August 17, 2021 19:54
@ReneWerner87 ReneWerner87 merged commit 0e08bb4 into gofiber:master Aug 23, 2021
@welcome
Copy link

welcome bot commented Aug 23, 2021

Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Session middleware does not use KeyLookup for session storage

2 participants