I have a Webhandler which generates an image on request in my asp.net Project. But if the user directly access the resource, it won\'t trigger the session start Event in the Gl
You can always make a method of the Session_Start
and call it
namespace WebFormsApplication1
{
public class Global : HttpApplication
{
void Session_Start(object sender, EventArgs e)
{
Global.StartSession();
}
}
public static class Global
{
public static void StartSession() {
Session["Test"] = 1;
}
}
}
and in your Handler, simply call Global.StartSession();