Interesting question. Really django provides few sessions backends by default and only 2 of them store any session info in database (db, cached_db). All other backends save session info in various cache storages like memcache, redis, files, local cache, etc. Right now sessions built as a part of http protocol only, not user level.
This relation is not possible out of the box if we want to have highly customizable framework :) Don’t worry, my english is ugly too ;) -- Alexandr Shurigin From: Vaal vaal...@gmail.com Reply: django-developers@googlegroups.com django-developers@googlegroups.com Date: 19 июня 2014 г. at 23:36:28 To: django-developers@googlegroups.com django-developers@googlegroups.com Subject: no relationship between session and user model Hello! There is a reason why in the framework (by default), there is no connection between the models user and session? I mean ForeignKey(to User) in Session model for example. This would be useful in a situation when the user changes the password, and we could remove all the sessions of that user. For example the user changes the password because he believes that pass has been compromised. But if the attacker was already has active session - it will not be interrupted. p.s. sorry for my English p.p.s. I understand that can modify the application sessions for their needs and make a new application or to find a ready-made. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/8ac582df-e1f1-4619-863c-134cadefc405%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/etPan.53a31260.4353d0cd.15a%40MacBook-Pro-dude.local. For more options, visit https://groups.google.com/d/optout.