Open efojs opened 3 years ago
Hi @efojs
Sorry if I'm not getting this but it looks like it's working as expected?
It's up to the browser to delete a cookie but the cookie value is getting set to ""
and it's being set to expire at Thu, 01 Jan 1970 00:00:00 GMT
which is the server side way of setting a cookie to delete.
There is a test which ensures this is what happens on LoginVerify
:
https://github.com/pyepye/django-magiclink/blob/master/tests/test_login_verify.py#L33-L34
Thanks Matt
Description
Debugging why cookie not deleted with
LoginVerify
ifREQUIRE_SAME_BROWSER
,found that it is set properly:
But for deletion, browser gets this:
Setting breakpoint after
response.delete_cookie(cookie_name, magiclink.cookie_value)
shows:While after
response.set_cookie(cookie_name, magiclink.cookie_value)
:Question
Do you have any ideas why can it happen?
Can you recreate it?
System
MagicLink: ==1.0.4 Django: ==3.2.5 Python: 3.8