title: ASP.NET Accessing cookie value in session_end event of global.asax
body: <p>In ASP.NET , How can i retrieve  a cookie value in the Session_End event of global.asax file ?
   The following code is throwing an exception "Object reference not set to an instance of an object"</p>
  
  <pre><code>    string cookyval = "";
      try
      {
          cookyval = Context.Request.Cookies["parentPageName"].Value;
      }
      catch (Exception ex)
      {
          cookyval = "";
      }
  </code></pre>
  
  <p>Any advice ?</p>