Home All Groups Group Topic Archive Search About

Client not returning server cookie

Author
3 Jan 2007 9:37 PM
Kunal
Hi friends,

During my server's communication with client, I add a cookie to the
HTTP response. I also set the "Expires" property of cookie using

cookie.Expires = DateTime.Now.AddDays(1);

This used to work earlier but today I have seen that my client has
stopped sending the cookie back to me in the same (TCP and HTTP)
session.

I saw that in the HTTP response from my server, the Max-Age info about
the cookie was missing. Does that mean that the way I set the Expires
property of cookie did not work ? I can't seem to figure whats the
problem.

Can anybody point out what could the possible problem be ? How can I
ensure that I get the cookie back from client ?

Thanks n Regards,
Kunal

AddThis Social Bookmark Button