Skip to content

Add option to use multiple sessions with different stores#144

Closed
srbry wants to merge 1 commit intogin-contrib:masterfrom
srbry:master
Closed

Add option to use multiple sessions with different stores#144
srbry wants to merge 1 commit intogin-contrib:masterfrom
srbry:master

Conversation

@srbry
Copy link
Copy Markdown
Contributor

@srbry srbry commented Dec 21, 2021

Based off of discussions in: #124

The basic premise:

Sometimes it is helpful to have different session stores for sessions that have a different purpose.

For example:

  • CSRF tokens stored in cookies
  • User sessions stored in a server-side technology

Additionally, you may also just want to use the same technology but with different settings. For example, one store might have a MaxAge of 10 minutes while another has a MaxAge of 30 days.

@appleboy
Copy link
Copy Markdown
Member

appleboy commented Apr 5, 2023

@srbry Please help to resolve conflicts.

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.

2 participants