> +---------- 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.
I use the code above,but through observe, i find that only one cookie has been set.In here it is "id". How can i set and get them both properly? Thank you very much.
