G
Guest
I wrote a http server program using HttpListener class, but i found an error
as following:
If add muliple cookies in HttpListenerResponse , these cookies will be
merged into ONE "Set-Cookie" header
seperated by a "," character.
While receiving by the IE client, the browser only process the first part
cookie ,the rest part will be ignored.
i sniffered the response of the httpserver, can aquire the following header:
Set-Cookie: SessionId=twctxnea3pdkt3zbre4kjlbz;
path=/,LID=M1Irb2hPL0WOExmV09w; path=/
so, on other pages of this server, the browser only send the first cookie
back:
Cookie: SessionId=twctxnea3pdkt3zbre4kjlbz
the cookie for LID is dropped.
One of the answer is using multiple "Set-Cookie" headers to send each
cookie, but HttpListenerResponse
doesnt allow you to do this.
who can help me? thx!!!
as following:
If add muliple cookies in HttpListenerResponse , these cookies will be
merged into ONE "Set-Cookie" header
seperated by a "," character.
While receiving by the IE client, the browser only process the first part
cookie ,the rest part will be ignored.
i sniffered the response of the httpserver, can aquire the following header:
Set-Cookie: SessionId=twctxnea3pdkt3zbre4kjlbz;
path=/,LID=M1Irb2hPL0WOExmV09w; path=/
so, on other pages of this server, the browser only send the first cookie
back:
Cookie: SessionId=twctxnea3pdkt3zbre4kjlbz
the cookie for LID is dropped.
One of the answer is using multiple "Set-Cookie" headers to send each
cookie, but HttpListenerResponse
doesnt allow you to do this.
who can help me? thx!!!