Okay, the problem was that the cookie was from my admin login (which I had
not logged out of). When I deleted this cookie, the cookie test seemed to
work. It does seem odd that I can't have two cookies for two different users
on the same browser. Is there a way to change this? Maybe by
Following: http://www.djangobook.com/en/2.0/chapter14/
I used the request.session.set_test_cookie() method when I pass the
login form. I then use the request.session.test_cookie_worked() method
to see if the cookie was set.
My view is setup to tell me when the test_cookie_worked() method
fails,
2 matches
Mail list logo