-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Does Regenerate method from session save data associated with the old id session with new one ? #2606
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
fiber/middleware/session/session.go Lines 116 to 135 in d44b03e
with the new id |
regenerate triggers the old data in the storage to be deleted and the id to be regenerated |
Ok, thank you for your brief response please can you keep this thread open because i m gonna make some well structured testes, shortly in my wrapper i used Regenerate and Save and without tranferring data manually i can not be able to get them back from controller |
@ADTMike can i close the report ? |
Sorry don't have much time, yes i will open n issue |
Question Description
Tested threw middleware wrapper in the same ctx meaning the wrapper handler it's keep data associated with the session id and when reaching endpoint (controller) got nil on Get(key) does Regenerate also defer with Save() ?
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: