Bussiness Class unable to refrence HTTPContext
<p>Hi I have a Bussiness Layer set up as another C# project within my solution, I need to call HttpContext but no matter what  I try I cannont get it to refrence correctly.</p>

<p>I have tried getting visual studio to pick up the refrence needed with no luck, and I have also tried putting a refrence to <strong>System.Web</strong> manually but these do not seems to work.</p>

<p>I have also noticed that <strong>Session</strong> is not being found as well.</p>

<p>Below is the code snippet I've used</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace BussinessLayer
{
    class UserPermissions
    {
        public void redirectToLogin()
        {

            if (Session["user"] == null)
            {
                HttpContext.
                if (HttpContext.Current.Request.Cookies["userName"] == null)
                {
                    HttpContext.Current.Response.Redirect("/login.aspx");
                }

            }
        }
    }
}
</code></pre>

<p>Does anyone know whay HttpContext or Session are not being found? Thanks in advance</p>
