Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.