SessionSateInGlobal.asax

  • Thread starter Thread starter .NET Follower
  • Start date Start date
N

.NET Follower

Is Sesssion State available in global .asax event handlers]
or even cache object?

amit
 
Is Sesssion State available in global .asax event handlers]
or even cache object?

It depends on which event handler you're talking about. It is available, for
example, in the Session_OnStart Event Handler. As to "cache object" -
Session State can only be accessed in the context of an HTTP Request, which
means that it is available to any object which has access to the current
HttpContext.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

.NET Follower said:
Is Sesssion State available in global .asax event handlers]
or even cache object?

amit
 
thx
kevin i am talking abt aplication events.
i guess it is not accesible even there ....


amit.


Kevin Spencer said:
Is Sesssion State available in global .asax event handlers]
or even cache object?

It depends on which event handler you're talking about. It is available, for
example, in the Session_OnStart Event Handler. As to "cache object" -
Session State can only be accessed in the context of an HTTP Request, which
means that it is available to any object which has access to the current
HttpContext.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

.NET Follower said:
Is Sesssion State available in global .asax event handlers]
or even cache object?

amit
 
Back
Top