-
Notifications
You must be signed in to change notification settings - Fork 39
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
Rework session ids #2804
Comments
Im guessing we dont use |
Calling EDIT: |
When testing manually and logging in and out with admin user on current master, it does actually already rotate session ID on logout (but not on login, #2813 fixes that). This is what the logout does:
Not entirely sure what here causes a new session ID to be created, but its probably the session being expired on the next request that causes it Those lines should probably be replaced with |
I generally dont understand why My guess is |
I don't see the neither the redundancies nor the complications that you apparently do. This is all to do with separation of concerns. Remember, the The session layer is implemented as a separate Django middleware, which concerns itself with identifying which session an incoming request should be associated with. It reads and sets cookies with session IDs to do this. Each session has an ID and an associated dictionary of arbitrary values. The middleware persists the session dictionary by serializing it and storing it in the database, and it retrieves and de-serializes session dictionaries from the database based on the session identified by cookies in the incoming requests. It attaches the de-serialized session dictionary to What a Django application chooses to store in
NAV doesn't use |
#2828 related |
When they are set, when they are changed, when they are deleted...
The text was updated successfully, but these errors were encountered: