How do I display something when a cookie expires
<p>I'm wanting to show a video when a person comes to the site and doesn't have a cookie. After they see the video, a cookie is added, but when the cookie expires, the video is played again.</p>

<pre><code>if (Request.Cookies["x"] != null)
    {
        //do nothing
    }
    else
    {
        ModalPopupExtender1.Show();
        Response.Cookies["x"].Value = DateTime.Now.ToString();
        Response.Cookies["x"].Expires = DateTime.Now.AddHours(24);
    }
</code></pre>

<p>I would think this would work correctly, however the movie only shows if the browser is cleared of all cookies. 24hrs later the movie will not play.</p>

<p>How do I fix this? </p>
