Session state is not available in this context.

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
Hi,

How do I access the value in a session variable in the Global.asax file. I am getting the following error: "Session state is not available in this context." The import statements that I have are: .Web, .Web.SessionState, and .Web.Security. Any suggestions?

Mike55
 
mike55 said:
Hi,

How do I access the value in a session variable in the Global.asax file. I am getting the following error: "Session state is not available in this context." The import statements that I have are: .Web, .Web.SessionState, and .Web.Security. Any suggestions?

Mike55

I never faced this kind of problem. The only thing I can think of is the "session state enable". Maybe it is set to «false» in the web.config?
 
Back
Top