C# failed to write cookie file
<p>I have tried to write a cookies file to store userID and userPw by the following code, but there is something wrong with my code, the output returned to me always is "cookies file not exist".</p>

<pre><code>protected void writeCookie(object sender, EventArgs e)
{
    if (Request.Cookies["save"] == null)
    {
        HttpCookie cookie = new HttpCookie("save");
        cookie.Value = "testing" + "testing2";
        cookie.Expires = DateTime.Now.AddMinutes(5);
        Request.Cookies.Add(cookie);
    }
    else
    {
        Response.Write("cookie existed");
    }
}

protected void ReadCookies(object sender, EventArgs e)
{
    if (Request.Cookies["save"] != null)
    {
        Response.Write(Request.Cookies["save"].Value);
    }
    else
    {
        Response.Write("cookies file not exist");
    }
}
</code></pre>
