connected. common use of cookies is to remember users between visits.Cookies is a small text file
sent by web server and saved by web browser on client machine

using system
//saving cookie
Response.Cookies["Cookiename"].Value="biscuit";
//when cookiesz expires
Response.Cookies["Cookiename"].Expires = DateTime.Now.AddDays(1);

string CookienameValue;
// if cookie not exists
if(Request.Cookies["Cookiename"] != null)
CookienameValue = Request.Cookies["Cookiename"].Value;

// First check if cookie exists
if (Request.Cookies["Cookiename"] != null)
{
// Set its expiration time somewhere in the past
Response.Cookies["Cookiename"].Expires = DateTime.Now.AddDays(-1);
}