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

Performance/api session skip earlier #14836

Closed
wants to merge 2 commits into from

Conversation

toy
Copy link
Contributor

@toy toy commented Feb 21, 2024

Just testing, see #14826

oliverguenther and others added 2 commits February 20, 2024 22:03
Accessing the API currently does not, and should not update the user's session.
Still, currently we're using it to access the session for authenticating the user.

As a result, the session is loaded and we're currently outputting a Set-Cookie header as well as
writing the user session on every API request.

By using session_options[:skip], we can tell rack to avoid saving the session after the request
authenticate can raise, so session will still get written
@toy toy closed this Feb 22, 2024
@toy toy deleted the performance/api-session-skip-earlier branch February 22, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants