Hi all,
I have a series of C# classes in my app_code that are called during the running of my ASP.NET application. And sometimes I would like to set Session variables inside of thse classes. But I don’t seem to have access to the session variables.
And it seems to make sense, because these classes are not really able to access like the HTTP variables (if that even make sense).
So I was wondering is there a way to access session variables from inside a C# class. I am thinking I have to send it a HTTPContext object as parameter to the method. But if that is the case, how I prepare the HTTPContext object.
Hope this makes sense.
Any help would be great. Thanks