On Thu, 2007-06-14 at 04:36 +0000, Nick wrote:
> A couple of weeks ago I submitted a patch to use the model API to
> delete expired sessions from the database in the daily_cleanup script
> (See http://code.djangoproject.com/ticket/4427).
> 
> I just had a thought, the code currently deletes all sessions with an
> expire_date < today's date... but as I read the sessions code, the
> expire_date is set as the date the session is created.

That's only in the session model as a default expiry time. The expiry
date is then tweaked for the "real" expiry time. Have a look at the
sessions middleware for details (search for SESSION_COOKIE_AGE).

Don't worry; it's all good. :-)

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to