ASP.Net Cookie Problems
<p>I have a cookie when a User loges in:</p>

<pre><code>HttpCookie cookie = new HttpCookie("Username");
                    cookie.Expires = DateTime.Now.AddDays(1.0);
                    cookie.Value = txtUsername.Text;
                    Response.Cookies.Add(cookie);
</code></pre>

<p>and it reads out in the Login-Page when the user visit again:</p>

<pre><code>if (Response.Cookies["Username"] != null) txtUsername.Text = Response.Cookies["Username"].Value;
</code></pre>

<p>But when I log in, and after that I log out directly, the cookie is deleted. It has neither the exp-date nor the value saved.</p>

<p>Whot do I wrong?</p>
