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 a SP2010 Server (enterprise edition) that hosts many web applications. Only one application requires a SQL Session State service.

The Powershell command Enable-SPSessionStateService does not specific a web application as target.

Can I Enable Session state service on a specific Web application in my SP2010 Server without affecting the other web applications?

share|improve this question
up vote 2 down vote accepted

Yes. This PowerShell command enables session state for the entire farm, but does not turn it on for any web applications.

To make a web application use session state, you'll need to change this in the web.config:

<pages enableSessionState="true"
share|improve this answer

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.