User session dependency #75
Unanswered
dineshbvadhia
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I did not understand your use case. Each user has a unique session ID stored in the cookies. If you remove the cookie, the session will be regenerated and the previous data will be lost. So, if you cannot use cookies that sessions is a wrong component to solve your task. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Users make requests to a fastapi (or starlette) server during their session. A users request(n) payload data is stored so it is available to the next request(n+1) to extract information from. And, so on until the user exits their session.
The server application does not have control over a users state in the client request (ie. cookie), only in the api. Imho, this means each user-session needs a unique session id to enable the payload data to be stored and accessed while the user-session is active.
Is this possible with starsessions?
Beta Was this translation helpful? Give feedback.
All reactions