Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

How to use Session object in WSS?

  Asked By: Zackary Pitts         Date: Oct 29, 2004      Category: Sharepoint      Views: 756

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.

Tagged:              

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].