Re: test_cookie_worked() fails although cookie is set

2010-02-26 Thread Timothy Kinney
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

test_cookie_worked() fails although cookie is set

2010-02-26 Thread Timothy Kinney
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,