I'm developing Visual Studio 2010 solution for site pages. I’ve created Site Pages in SharePoint 2010 and I’m trying to access Session variables in code
behind in ASP.NET but it throws the following error.
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please
also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
I set the page directive as
View Complete Post