title: How to set the default cookie value in global.asax?
body: <p>I would like to create a cookie and set a default value to it, for each user who visits the website. The cookie is to start the site in English language and later user can change the language to his preference. </p>
  
  <p>I am doing this in global.asax</p>
  
  <pre><code>        HttpCookie myCookie = new HttpCookie("Language"); 
          myCookie.Value = "EN";
          myCookie.Expires = DateTime.Now.AddDays(1d);
          HttpContext.Current.Response.Cookies.Add(myCookie);
  </code></pre>
  
  <p>I tried to use the above code in following events,</p>
  
  <pre><code>Application_Start
  Application_BeginRequest
  Session_Start
  </code></pre>
  
  <p>In all the three events above, sets the cookie value to "EN" for every page load. Which should not be the case. When user selects some other language, the language must be set to HttpCookie("Language").</p>