Thank you again Ben. Your pointers helped tremendously. I now have it working. To get it to work I had to remove the print "Content-type: text/html\n\n" line. After removing that line, everything worked like a charm. Prior to that it just would not save or recall the cookie. You made my morning!
- Mark