Hello,
I have this (a cookie writer)
<script runat="server">
void WriteClicked(Object Sender, EventArgs e)
{
//Create a new cookie, passing the name into the constructor
HttpCookie cookie = new HttpCookie(NameField.Text);
//Set the cookies value
cookie.Value = ValueField.Text;
//Set the cookie to expire in 1 minute
DateTime dtNow = DateTime.Now;
TimeSpan tsMinute = new TimeSpan(0, 0, 1, 0);
cookie.Expires = dtNow + tsMinute;
//Add the cookie
Response.Cookies.Add(cookie);
Response.Write("Cookie written. <br><hr>");
}
</script>
I have 2 server,
on one, the cookie is well writing...
on the second, the page say Cooke written, but there is nothing (the cookie
is not writing on disk) ???
What's happen ????
Merci !