Ah - right. The middleware returns that all wrapped up. You can use the _session attribute on it to get down to the actual session object (I think - at least based on a quick glance through the code).
So (I think) x=request.session._session x.delete() -joe On 5/23/07, Ramashish Baranwal <[EMAIL PROTECTED]> wrote: > > > On May 23, 10:18 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > > > > > The session is a model in Django - so you can delete it like any other - > > > > > x=request.session > > > x.delete() > > > > > There's also the daily_cleanup.py script included with Django that > > > just goes straight to the > > > database:http://code.djangoproject.com/browser/django/trunk/django/bin/daily_c... > > > > Thanks Joe, but thats not working. I'm getting the following error- > > > > AttributeError > > 'SessionWrapper' object has no attribute 'delete' > > Exception Type: AttributeError > > Exception Value: 'SessionWrapper' object has no attribute 'delete' > > Sorry for the multiple postings. It was due to some network problem at > my end. > > -Ram > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---