First put sessionvalue in page
Session["_eventId"]=12;
They key part of this answer is that the handler must be modified to inherit from IRequiresSessionState in order to have access to the Session
public class Upload : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
...
if( context.Session["_eventId"] !=null))
evtObj.eventId = int.Parse(context.Session["_eventId"].ToString())
....