Server Error in '/' Application.

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.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: 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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): 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.]
   System.Web.UI.Page.get_Session() +171
   CMSApp.CMSWebParts.Flint.onlinebookingbasketcount.SetupControl() in C:\Development\GBNI\v12\flint-net.gbni\Kentico\CMS\CMSWebParts\Flint\onlinebookingbasketcount.ascx.cs:193
   CMSApp.CMSWebParts.Flint.onlinebookingbasketcount.OnContentLoaded() in C:\Development\GBNI\v12\flint-net.gbni\Kentico\CMS\CMSWebParts\Flint\onlinebookingbasketcount.ascx.cs:166
   CMS.PortalEngine.Web.UI.CMSWebPartZone.OnContentLoaded() +158
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.OnContentLoaded() +174
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.LoadWebPartsContent(Boolean reloadData) +314
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.LoadContent(PageInfo pageInfo, Boolean reloadData, Boolean allowOrphanedZones) +875
   CMS.PortalEngine.Web.UI.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +1942
   CMS.PortalEngine.Web.UI.CMSPortalManager.LoadPage(Boolean reloadData) +233
   CMS.PortalEngine.Web.UI.CMSPortalManager.PageHelper_InitComplete(Object sender, EventArgs e) +29
   CMS.Base.Web.UI.PageContext.CurrentPage_InitComplete(Object sender, EventArgs e) +280
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +11688792
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +631


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4110.0