Is the line being displayed?  In that case you are likely printing the 
cookie after the header has already been printed, which is not allowed 
(or at least not standard, though I think some browsers may accept them).

More specific information is going to be needed, and posting a larger 
portion of your script would be much more helpful.

You might also considering using a library to handle cookies for you, 
such as the CGI module, or the many free variants.  These will lessen 
the amount you have to know about HTTP and make sure you cover your bases.

http://danconia.org



Jerry Lawson wrote:
> I'm having trouble sending a cookie. The book I have says to send a
> cookie the code 'print "Set-Cookie:name=value\n";' will work. When I
> implement this code in my script, the cookie is not being set. Can
> someone tell me what I am doing wrong?
> 
> Thanks,
> 
> Jerry Lawson
> 
> 
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to