SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have got a problem with using Session at Sharepoint 2010.

I use this code:

        Session["Dzien"] = TextBox3.Text;
        Session["Pracownik"] = DropDownList1.SelectedItem.Text;

I put at web.config this lines, and the error still showns:

<pages enableSessionState="true"

and next lines:

<modules runAllManagedModulesForAllRequests="true"> . . <remove name="Session" /> <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="" /> . . </modules>

And the Error still showns:

enter image description here

share|improve this question
up vote 1 down vote accepted

Have you run this Powershell?

Enable-SPSessionStateService –DefaultProvision

This is also required for enable Session State in Sharepoint (MSDN)

share|improve this answer
Now is worrking great thanks :) – Grzegorz Z May 13 '13 at 13:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.