Session cookie removed on on every request. #222
Answered
by
maxcountryman
YousofMersal
asked this question in
Q&A
-
Hello, i'm using axum-session with an sqlx session store, and I'm currently facing an issue where every time I've logged in a user. Any request they make to the authentication API will remove their session cookie. Full source can be found here: https://github.com/YousofMersal/website/tree/main/services/server |
Beta Was this translation helpful? Give feedback.
Answered by
maxcountryman
May 17, 2024
Replies: 1 comment 11 replies
-
How is the request being made? It sounds like the session cookie is not being included in the request based on the logs you shared. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's up to your implementation of AuthUser. But I would be careful setting it a user ID: while it is unique, it won't account for invalidating sessions when a user changes their passwords (that's okay if you don't want that but it's generally a good practice).