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

Session data after login #80

Open
yuanlu0210 opened this issue Apr 26, 2021 · 0 comments
Open

Session data after login #80

yuanlu0210 opened this issue Apr 26, 2021 · 0 comments

Comments

@yuanlu0210
Copy link

yuanlu0210 commented Apr 26, 2021

From the book, I read "When users log into the site, their anonymous session is lost and a new session is created for the authenticated users. If you store items in an anonymous session that you need to keep after users log in, you will have to copy the old session data into the new session."

which seems to be different from what's in the Django documentation:

"Note that any data set during the anonymous session is retained in the session after a user logs in."

(See https://docs.djangoproject.com/en/3.2/topics/auth/default/#django.contrib.auth.login)

Can someone help explain this? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant