Cookie problem. Very strange!!!!

A

alex

Why is is happening????

3 lines of code:

1)if (Request.Cookies["test"] == null) // evaluates to TRUE (no cookie
from client)

2)Response.Cookies.Add("test"); // add cookie to send to client


3)if (Request.Cookies["test"] == null) // evaluates to FALSE!!!!


Why in the world adding cookie to Response cookies collection would
affect Request cookies collection. Is it a bug? I can't believe it is
by design.
 
E

Eric Lawrence [MSFT]

It seems very likely to me that this is by design. Is there some reason
this would be undesirable?

-Eric
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top