You can read the docs: https://docs.djangoproject.com/zh-hans/2.0/topics/http/sessions/#django.contrib.sessions.backends.base.SessionBase
or the source code: https://github.com/django/django/blob/578e576c31fcd5757c3f4fc2dea7673b3462f575/django/contrib/sessions/backends/base.py If still confusing, maybe you should learn HTTP session and cookies: https://en.wikipedia.org/wiki/Session_(computer_science) john speny <[email protected]>于2018年6月23日周六 下午9:55写道: > What does the method session.keys() do or particularly that keys() method > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/254b2ac1-b7cf-4450-bf2e-e3d6cdb11815%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/254b2ac1-b7cf-4450-bf2e-e3d6cdb11815%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMv51WT6ee%3DShnez93Pi4H7winwU1s4Qx8SN9OOf8%3DyPeJJg5g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

