Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: cookie problem

by Chady (Priest)
on Apr 28, 2002 at 16:31 UTC ( #162678=note: print w/ replies, xml ) Need Help??


in reply to cookie problem

I'm not an HTTP expert, but I think that the Set-Cookie header should be sent before the content-type.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/


Comment on Re: cookie problem
(Kozz): Re: cookie problem
by Kozz (Friar) on Apr 28, 2002 at 16:43 UTC
    I believe that Chady is correct. To verify this, you might try
    lynx -dump -source http://localhost/cookie-via-CGI.cgi
    Since you said that the CGI method of setting the cookie works correctly, this lynx call would let you view the server headers (including the Set-Cookie portion) and in what order they appear when done "properly".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://162678]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2015-07-01 21:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls