just do this:
from django.contrib.sessions.models import Session

Session.objects.filter(session_key=request.session.session_key).delete()

On May 23, 3:26 pm, Ramashish Baranwal <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> How can I delete the session of a request? The docs speak about using
> session as a dict and setting and removing specific keys on that, but
> I want to remove the session itself, something like del request.session
>
> Any ideas?
>
> Thanks in advance,
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to