Hello,
I want to wrap the django.contrib.auth.views.logout so that it also
deletes all the cookies for my domain, this is my wrapped logout
method.


def grupsal_logout(request, **kwargs):
        from django.contrib.auth.views import logout
        from django.core.urlresolvers import reverse
        response = logout(request,
next_page=reverse('myapp.views.index_view'))
        response.delete_cookie('user_location')
        return response


It doesn't seem to work. How can I achieve this ?

Thanks

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

Reply via email to