I'm using an ASHX handler, i want the handler to check if Session != null.
if (context.Session["Username"] != null)
And i get this error pointing this line:
System.NullReferenceException: Object reference not set to an instance of an object.
What's the problem?