in reply to Cookie value not getting set

If I follow what you are saying, the cookies are working as advertised. Here's my rephrased walk-through of what you seem to be describing.


The current CGI script gets its cookie values from the remote client browser at the script start-up. The cookie value you set is still in the stream of output to the user's browser when you print it and in all subsequent parts of the current script.

The cookie is not available (to be checked or used) until you get a response back from the client browser which has received the cookie and then sends it back to a script at your end for use (either the same script or a different one).

Does this help?