Bugs on HttpListener

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!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top