13 Aug 2010
16 Feb 2011
Link to this post
I have a custom user control that utilizes the Session scope variables. When I included the user control into a page, it threw that familiar exception:
"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."
Is it ok for me to enable session state? Will it affect Sitefinity in any way? Is there a more preferred way for me to persist user control variables through a page refresh?