On Jun 14, 2010, at 7:47 AM, Evgeny Morozov wrote:

> I have cookies enabled in three different browsers.
>> It doesn't need a patch. You need to enable cookies in your browser.

Presumably something's stripping the cookie from the header, then. That error 
message only occurs when there's no "cosign=<value>" cookie in the headers from 
the browser. Can you verify that headers are coming from the browser (using 
Firefox's Live HTTP Headers add-on) and that the headers are getting to the cgi 
(using the patch to the 3.1.1 source below)?

andrew

--

diff --git a/cgi/cgi.c b/cgi/cgi.c
index ae4ec41..652ee7c 100755
--- a/cgi/cgi.c
+++ b/cgi/cgi.c
@@ -432,6 +432,7 @@ main( int argc, char *argv[] )
     }
 
     if (( data = getenv( "HTTP_COOKIE" )) != NULL ) {
+fprintf( stderr, "cosign.cgi: HTTP_COOKIE header: %s\n", data );
        for ( cookie = strtok( data, ";" ); cookie != NULL;
                cookie = strtok( NULL, ";" )) {
            while ( *cookie == ' ' ) ++cookie;
@@ -439,6 +440,8 @@ main( int argc, char *argv[] )
                break;
            }
        }
+    } else {
+fprintf( stderr, "cosign.cgi: no HTTP_COOKIE header received\n" );
     }
 
     if ( cookie == NULL ) {
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Cosign-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to