+---------- On Apr 5, ������ said:
> Excuse me, how can i set the cookies use aolserver c api?
> I want set two params : domain and one id
If you mean that you want to set a cookie named "domain": you cannot.
The word "domain" cannot be used as the name of a cookie. Try using
something like "mydomain" instead.
char s[1000];
snprintf(s, sizeof buf, "id=%s; mydomain=%s; path=/", id, domain);
Ns_SetPut(Ns_ConnOutputHeaders(Ns_GetConn()), "Set-Cookie", s);
See <http://home.netscape.com/newsref/std/cookie_spec.html> for more
details about the Set-Cookie header.