Skip to content
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

update session managemnent for unsecure cookie #862

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

catatsuy
Copy link
Member

This pull request includes several changes to the webapp/go module to enhance session management and update dependencies. The most important changes involve adding a new dependency, modifying the session store initialization, and updating the import statements.

Dependency Management:

  • Added github.com/gorilla/securecookie v1.1.2 to the go.mod file and removed the redundant indirect requirement. (webapp/go/go.mod)

Session Management:

  • Updated the import statements in main.go to include github.com/gorilla/securecookie. (webapp/go/main.go)
  • Modified the session store initialization to use securecookie.CodecsFromPairs for enhanced security and set additional session options. (webapp/go/main.go)
  • Removed the line setting session.Options.Secure to false in the getSession function, as this is now managed by the session store options. (webapp/go/main.go)

@catatsuy catatsuy merged commit 1f1067e into master Aug 25, 2024
4 checks passed
@catatsuy catatsuy deleted the feature-update-session-managemnent branch August 25, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant