title: Unable to read cookie in asp.net
body: <p>I have a code in my asp.net web form page_load</p>
  
  <pre><code> if(HttpContext.Current.Request.Cookies["timezoneoffset"] != null)
   {
       HttpContext.Current.Session["timezoneoffset"] = HttpContext.Current.Request.Cookies["timezoneoffset"].Value;
   }
   else
   {
       HttpContext.Current.Session["timezoneoffset"] = 0;
   }
  </code></pre>
  
  <p>When I debug control is flowing through if block. But when I deploy it is going to else. Can somebody help me to read this cookie and set it into a session?</p>