Hi Thierry, On 11/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I store user data in sessions, for authenticated users. > When the user logs out (I use the view shortcut > django.contrib.auth.views.logout), his/her session data remains. Is there an > easy way to remove all session data after a user logout? I would prefer to > avoid wrapping the automated logout in a custom view, but looking at the code > I > do not see any clue.
There's a daily_cleanup.py script in the /django/bin/ directory that you can run daily (as a cronjob, maybe) to clean up expired session data from the database. To view it online: http://code.djangoproject.com/browser/django/trunk/django/bin/daily_cleanup.py Cheers! -- Antonio --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---