Google App Engine, Python, deleting a cookie or changing its value?

I searched for this, but cannot figure out how to delete a specific cookie using the Google Apps Engine, a version of Python. I set a cookie as shown below and I need to update its value. I believe that I cannot update and just need to be deleted and recreated, but I canโ€™t find a way to do this, I create it as shown below:

        str = 'if_loggedin_username='+ self.username
        self.from_obj.response.headers.add_header(
                                 'Set-Cookie', str)

Thanks for any advice.

+3
source share
2 answers

HTTP cookie. , cookie , ; "" cookie, .

+7

, cookie None (NoneType)

self.response.headers.add_header("Set-Cookie", None)

,

0

Source: https://habr.com/ru/post/1766124/


All Articles