On Fri, Jun 11, 2010 at 1:43 PM, Jan Murre <jan.mu...@gmail.com> wrote:
> On Fri, Jun 11, 2010 at 3:13 PM, Tom Evans <tevans...@googlemail.com> wrote:
>> On Fri, Jun 11, 2010 at 11:41 AM, jjmurre <jan.mu...@gmail.com> wrote:
>>> Hi,
>>>
>>> I am using long living session in the database backend. Because of
>>> Robots I am getting a huge amount of sessions. I googled if there is
>>> some kind of Session middleware that does user-agent blacklisting and
>>> does not create new sessions in the database for Robots accessing the
>>> site. I did not find anything. Would this be possible at all?

FWIW, sessions should only be written to the DB if they are modified,
and you can avoid that by checking User.is_authenticated first.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to