Provide function to regenerate RawStore within session #4

Merged
zeripath merged 2 commits from zeripath/session:regenerate-session-function into master 2021-12-18 22:16:15 +00:00
Owner

There is currently no easy way to regenerate the session id within Sessioner
meaning it is hard to update the session ID early on in a request tree.

RegenerateSession will look in the request scope for the session, grab the session
release, regenerate and then flush the old session before updating the RawStore in the
session.

Signed-off-by: Andrew Thornton art27@cantab.net

There is currently no easy way to regenerate the session id within Sessioner meaning it is hard to update the session ID early on in a request tree. RegenerateSession will look in the request scope for the session, grab the session release, regenerate and then flush the old session before updating the RawStore in the session. Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added 1 commit 2021-12-18 15:36:56 +00:00
Provide function to regenerate RawStore within session
There is currently no easy way to regenerate the session id within Sessioner
meaning it is hard to update the session ID early on in a request tree.

RegenerateSession will look in the request scope for the session, grab the session
release, regenerate and then flush the old session before updating the RawStore in the
session.

Signed-off-by: Andrew Thornton <art27@cantab.net>
All checks were successful
continuous-integration/drone/pr Build is passing
fada65c986
Owner

There is currently no easy way to regenerate the session id within Sessioner
meaning it is hard to update the session ID early on in a request tree.

RegenerateSession will look in the request scope for the session, grab the session
release, regenerate and then flush the old session before updating the RawStore in the
session.

Signed-off-by: Andrew Thornton art27@cantab.net

How about to add a test?

> There is currently no easy way to regenerate the session id within Sessioner > meaning it is hard to update the session ID early on in a request tree. > > RegenerateSession will look in the request scope for the session, grab the session > release, regenerate and then flush the old session before updating the RawStore in the > session. > > Signed-off-by: Andrew Thornton <art27@cantab.net> How about to add a test?
zeripath added 1 commit 2021-12-18 17:02:16 +00:00
add tests
Signed-off-by: Andrew Thornton <art27@cantab.net>
All checks were successful
continuous-integration/drone/pr Build is passing
e375b87ea5
Author
Owner

I've added tests and fixed some issues.

I've added tests and fixed some issues.
jolheiser approved these changes 2021-12-18 21:41:48 +00:00
zeripath merged commit e3605d8b28 into master 2021-12-18 22:16:15 +00:00
zeripath deleted branch regenerate-session-function 2021-12-18 22:16:22 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: go-chi/session#4
No description provided.