I have some information I have stored in a sesion in global.asax, but I need to acces it from a HttpHandler, but I can't get it, I have tryed it like this.
public void ProcessRequest(HttpContext context)
{
List<TextAndNr> databases = (List<TextAndNr>)context.Session["DataBase"];
}
AND LIKE
public void ProcessRequest(HttpContext context)
{
List<TextAndNr> databases = (List<TextAndNr>)context.GetSection("DataBase");
}
is ther an other way to get it, ore is there an other way to store it, it is diferent information if they open a window ore browser
Each ASP.NET application will create multiple instances of HttpApplication (Global.asax).
When a request is received it will be handed to one of the HttpApplication instances. The request will then stay with the same HttpApplication instance
for its lifetime. This means there is one HttpApplication instance per request being handled. Every HttpApplication instance
can, and will, be reused to handle many requests during its lifetime.
Member
9 Points
53 Posts
Can't connect to global.asax
Jun 02, 2014 12:26 PM|Bendix BP Tech|LINK
Hey
I have some information I have stored in a sesion in global.asax, but I need to acces it from a HttpHandler, but I can't get it, I have tryed it like this.
is ther an other way to get it, ore is there an other way to store it, it is diferent information if they open a window ore browser
Member
624 Points
274 Posts
Re: Can't connect to global.asax
Jun 02, 2014 01:50 PM|akfkmupiwu|LINK
Each ASP.NET application will create multiple instances of HttpApplication (Global.asax). When a request is received it will be handed to one of the HttpApplication instances. The request will then stay with the same HttpApplication instance for its lifetime. This means there is one HttpApplication instance per request being handled. Every HttpApplication instance can, and will, be reused to handle many requests during its lifetime.
URL may help
if (helpful){
switch (ShouldIMarkAsAnwer) {
// Process
...
}
}