Thanks. I did notice the load() method. But can you tell me where is that method called?
On May 12, 5:39 pm, Kirill Spitsin <t...@0x746e.org.ua> wrote: > On Thu, May 12, 2011 at 01:58:07PM -0700, Andy wrote: > > ... > > > So basically SessionStore just creates a new instance without trying > > to look up in the database to see whether that session already exists > > or not. But shouldn't that be the whole point of session -- for every > > request Django needs to look up in the session database to see if the > > session is already there? I'm guess at someplace this database lookup > > takes place but I can't find it. > > > Can you tell me where can i find it? Or did I misunderstand how > > session work in Django? > > Django loads session from store lazily, after first access to session, > in `SessionStore.load()` method. For example: > > https://code.djangoproject.com/browser/django/trunk/django/contrib/se... > > -- > Kirill Spitsin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.