System.NullReferenceException: Object reference not set to an instance of an object in C#
<p>I have written following code in my <strong>global.asax</strong> file </p>

<pre><code>void Application_PreRequestHandlerExecute(object sender, EventArgs e)
    {        
        ConnStr = objConnStr.GetConnectionString();


        if (HttpContext.Current.Session["LOGIN"] != null  )

        {   
 }
}  
</code></pre>

<p>It is throwing following error at *<em>HttpContext.Current.Session["LOGIN"] *</em></p>

<p><strong>Description</strong>: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>

<p><strong>Exception</strong> Details: System.NullReferenceException: Object reference not set to an instance of an object.</p>

<p>what may be the issue ?</p>
