Django logout(redirect to home page) .. Delete cookie?

后端 未结 3 836
死守一世寂寞
死守一世寂寞 2020-12-25 13:56

I redirect the user to the home page after logout. In between I would like to delete all/or specific client cookies (I have previously set).

def logoutuser(r         


        
3条回答
  •  渐次进展
    2020-12-25 14:19

    according to http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.logout

    Changed in Django 1.0: Calling logout() now cleans session data.

提交回复
热议问题