Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: A question about Cookies



I have a rather urgent little problem.  I fired a message off to
a publisher in Europe about this legal translation project I've
been working on, in the hope that they can be interested in
launching a series based on it.

Then I realized that the Netscape browsers at the student Coop
don't render the output of the CGI at all; they just dump the
raw HTML onto the screen.  This is going to be a little
embarrassing if I don't fix the problem soon, and a Netscape
user at the publishers connects to the site to see what I'm
making all these optimistic noises about.

I ran the top-level page through a validator, found cross-nesting
problems, and fixed them.  But I still get the same result with
Netscape -- and with Lynx.

I am certain now that the problem is in the way cookies, used
to identify that a login session for a specific user is in
progress, are sent back to the browser.  The opening lines
of the CGI output are:

*****

Set-Cookie: clientid=209498983905; expires=Friday, 31-Dec-99 23:59:59 GMT;
Set-Cookie: clientid=209498983905;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.o
<html>
<head>

[snip]

*****

IE parses this and renders the text.  It seems to store the cookie
between invocations of the CGI okay.  The cookie seems to die when
IE is terminated.

If I dump the output to a file and trim off the cookie lines, Lynx
renders the text (and I assume that Netscape will too).

Something must be wrong with that syntax.  If IE hadn't passed
it, I would have fixed the problem earlier; now I'm in a bit
of a fix myself.  I don't find any reference to cookies in either
the HTML docs (not surprising), or in the HTTP documentation
(which puzzles me).  Can anyone help with this?  Should those
just be meta-tags of some sort?

Cheers,
----
-x80
Frank G Bennett, Jr         @@
Faculty of Law, Nagoya Univ () email: bennett@example.com
Tel: +81[(0)52]789-2239     ()

--------------------------------------------------------------------
Next Nomikai Meeting: February 18 (Fri) 19:00 Tengu TokyoEkiMae
Next Technical Meeting:  March 11 (Sat) 13:00 Temple University Japan
* Topic: TBD
--------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links