You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description
I want to write a refresh api for regenerating a session but it doesn't regenerate session every second call.
When call refresh in first time the fresh of sess is true and I have a session. In second time the fresh of sess is false and sess.Save() doesn't save a new session. In third time the fresh of sess is true and I have a session.
I think issue is sess.Regenerate() does't set s.fresh = true.
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
Calling Session.Regenerate and then Session.Save doesn't update the cookie, so in the next request the browser sends the previous session ID which was deleted.
Fiber version
v2.13.0
Issue description
I want to write a
refresh
api for regenerating a session but it doesn't regenerate session every second call.When call
refresh
in first time thefresh
of sess is true and I have a session. In second time thefresh
of sess is false andsess.Save()
doesn't save a new session. In third time thefresh
of sess is true and I have a session.I think issue is
sess.Regenerate()
does't sets.fresh = true
.Code snippet
The text was updated successfully, but these errors were encountered: