Provide function to regenerate RawStore within session #4

Merged
zeripath merged 2 commits from zeripath/session:regenerate-session-function into master 10 months ago
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 10 months ago
continuous-integration/drone/pr Build is passing Details
fada65c986
Provide function to regenerate RawStore within session
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 10 months ago
continuous-integration/drone/pr Build is passing Details
e375b87ea5
add tests
Poster
Owner

I've added tests and fixed some issues.

I've added tests and fixed some issues.
jolheiser approved these changes 10 months ago
zeripath merged commit e3605d8b28 into master 10 months ago
zeripath deleted branch regenerate-session-function 10 months ago

Reviewers

jolheiser approved these changes 10 months ago
continuous-integration/drone/pr Build is passing
The pull request has been merged as e3605d8b28.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: go-chi/session#4
Loading…
There is no content yet.