Cookie problem. Very strange!!!!

  • Thread starter Thread starter alex
  • Start date Start date
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.
 
It seems very likely to me that this is by design. Is there some reason
this would be undesirable?

-Eric
 
Back
Top