Sorry if this is a basic question, but I'm new to AOLServer :-)

I'm trying to set multiple cookies in a response using 'ns_connect
outputheaders', but only one cookie gets returned to the browser.

e.g.
ADP page:

<%
        [gt_set_cookie CUSTID 0]
        [gt_set_cookie AUTHID 0]
%>

Tcl private library:

proc gt_set_cookie {name value} {
        set expire "Mon, 10-Apr-2006 06:46:37 GMT"
        ns_set put [ns_conn outputheaders] "Set-Cookie" "$name=$value; path=/; $expire"
}

The browser just gets the CUSTID=0 cookie, always the first one given in the
ADP page.

Any clues would be most appreciated,

Chris Foote
[EMAIL PROTECTED]
ph: +61 42 10101 88

Reply via email to