I am trying to access the Session variable in Asp.Net ashx handler as shown below.
public void ProcessRequest (HttpContext context) {
context.Session["VariableName"] = Id;
}
But the context.Session is always Null inside the above method. How do I access Session objects in ashx file?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…