I
Ivan Demkovitch
Hi!
From what I understand cookies could be persisted or in-memory.
I need to set second one...
This code:
Response.Cookies["phpbb_data"].Value = Server.UrlEncode(phpC);
Response.Cookies["phpbb_data"].Path = "/";
Response.Cookies["phpbb_data"].Expires = DateTime.Now.AddMinutes(1);
would place cookie on HDD regardless of "Expires" property (even if I don't
set it)
In MSDN I found object Cookie with property Discard. This is what I need,
but the one I use is HttpCookie.
How do I set this in-memory cookie???
Thanks!
From what I understand cookies could be persisted or in-memory.
I need to set second one...
This code:
Response.Cookies["phpbb_data"].Value = Server.UrlEncode(phpC);
Response.Cookies["phpbb_data"].Path = "/";
Response.Cookies["phpbb_data"].Expires = DateTime.Now.AddMinutes(1);
would place cookie on HDD regardless of "Expires" property (even if I don't
set it)
In MSDN I found object Cookie with property Discard. This is what I need,
but the one I use is HttpCookie.
How do I set this in-memory cookie???
Thanks!