Session object
C#
3
Posts
3
Posters
0
Views
1
Watching
-
Does somebody know in which Dll and Namespace I can find the
Session
- Object (if there is any:~ )? thanks -
Does somebody know in which Dll and Namespace I can find the
Session
- Object (if there is any:~ )? thanks -
Does somebody know in which Dll and Namespace I can find the
Session
- Object (if there is any:~ )? thanksIf you actually read the documentation, you'd see that it's in the System.Web.dll assembly under the
System.Web.SessionState
namespace (as Mazdak mentioned). You can't simply just use it, though. It's bound to the currentHttpContext
for a user. You can get this from theHttpContext.Current
property (returns the currentHttpContext
, the class which defines aSession
property) and thePage
class.Microsoft MVP, Visual C# My Articles