Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Why is Session State disabled in SharePoint by default?

Does it not make use of session in any feature of SharePoint at all? If so then which features require session?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Sharepoint kinda does it's own session management. Part of the reason it's disabled (I think ) is to keep developers from screweing around with sessions in sharepoint without knowing what they are doing and causing headches for admins. SharePoint does not automatically remove old session state records from the session state database tables. Performance will degrade if you are using sessions without proactive action to regularly purge expired sessions.

Here is a relevent quote from From the patterns & practices SharePoint Guidance:

Session State Management in SharePoint SharePoint relies upon the ASP.NET session state framework for session state. The ASP.NET session state infrastructure includes session state providers that allow you to implement different store partitions for session state information. For more information on ASP.NET session state providers, see Session State Provider on MSDN.

SharePoint implements its own session state persistence mechanism. A partition resolver redirects the SqlSessionStateStore to the SharePoint session database based upon the session ID. SharePoint creates a session state database when the primary Shared Services Provider is installed. For information on configurating the primary Shared Services Provider, see Configure the primary Shared Services Provider on TechNet.

Microsoft Office Forms Server and Microsoft Office Project Server rely upon ASP.NET session state. Excel Services relies upon session state, but tracks session information directly within the Excel Services Shared Service Provider (SSP) rather than relying upon the ASP.NET session infrastructure.

share|improve this answer
    
Deleted my other incorrect answer Jim, thanks. Not entirely sure what I was thinking there, but it was more than a year ago... –  MattB Jun 16 '11 at 14:35

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.