Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to use Session object in WSS?

  Asked By: Zackary    Date: Oct 29    Category: Sharepoint    Views: 2258

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 .



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on How to use Session object in WSS? Or get search suggestion and latest updates.