I am trying to use the session object in one of my webpart. But it is giving 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
Later I have added the following lines in the web.config file of the site.
1. <add name="Session" type="System.Web.SessionState.SessionStateModule" />
2. <pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
Even then I am getting the same error. I am not able to use the session feature at all.
Anybody please help me .
Do you know someone who can help? Share a link to this thread on twitter, or facebook.