Contents
What to do when enablesessionstate is set to true?
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 \\ section in the application configuration.
When to use system.web.sessionstatemodule?
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 \\ \\ section in the application configuration.
When to use Kentico-getting error session state?
I upgraded Kentico site into version Kentico version 11. I am getting error of Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.
Is it better to not use session state?
Note: It’s better to have your Controller fetch the value from the session and have it add the value to the Model for your page/control (or to the ViewBag), that way the View doesn’t depend on the HttpSession and you can choose a different source for this item later with minimal code changes. Or even better, not use the session state at all.
When to use session state in.net?
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 \\ \\ section in the application configuration.
Where can I find custom session state module?
Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the \\ \\ section in the application configuration. What I did for sort out this issue are as below : Try 1 : web.config file has been changed like below: