It is ok. Really. In llvikgiimn. In. Go g -j I hurry. -- Sent from a phone, please excuse typos and terseness.
On Jan 21, 2013, at 4:10 PM, Nikolas Stevenson-Molnar <nik.mol...@consbio.org> wrote: > I took a quick peek at the sessions implementation and it doesn't look > like this is possible just using the sessions framework (since it only > stores Session -> User and not User -> Session). You could subclass one > of the existing session backends and store this information yourself > (look at django.contrib.sessions.backends). Keep in mind that sessions > are not always associated with users. You'll also need to look at the > auth module to see how it stores user id in the session, then watch for > that in your session backend's __setattr__ method. > > _Nik > > On 1/21/2013 2:35 PM, Serge G. Spaolonzi wrote: >> I am looking the way to selective clear determinate user sessions from >> the server. It has to be done from outside the user's session or request. >> The complete user case is: >> 1) Django process receives a ping with the id of the user to clear the >> session >> 2) Django process searchs the session for that user and cleans it. >> >> How can I find an user's session from an user's id? >> What would be the most efficient way to archive this? >> >> Thanks >> >> -- >> Serge G. Spaolonzi >> Cobalys Systems >> http://www.cobalys.com >> -- >> 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. > > -- > 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. > -- 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.