I have started a basic and simple web part i want to save a string variable along the session. while i use
Page.Session["SomeName"] = "SomeValue", the debugger rises the error stating the
enableSessionState must set to
true. i have read about this that i must set it in
web.config file but my solution in the visual studio only has
app.config file. i don't want to change the sharepoint web.config file manually too.
I also have read this article about Enable-
SPSessionStateService and done that. so now i want to do everything problematically. i also came to read about solutions witch suggested ussing
HttpContext, i use .net framework 3.5 and could'nt find
How to enable session state in an asp.net c# webpart with .net framework 3.5 for sharepoint 2010.