I've been asked to "fix" some python / CGI code on one of our products. The cookies worked fine in Firefox, but were timing out after a couple seconds in Internet Explorer 6.x.
I have had some experience with Python before, but that's about it. After mucking 'round within the code for a couple of days, I was unable to find an obvious cookie error. The ex-dev looked like they knew even less than me, and it was hardly secure.
I took out the cookie code, and replaced it. But we're running into a weirder set of problems:
1) It looks like the cookies are not being stored by IE. They are not showing up as a "Cookie:.." text file in the Temp Internet Files directory.
2) The attached code shows the cookie code in a simple test. In IE, hitting the 'login' button often brings you back to the login.cgi page. Changing the security settings makes no difference here...
Could these problems have the same root? Is it the cookie code? What am I missing?