Is there a way to store some kind of session variables for sharepoint users? What are disadvantages activating session state service inside of sharepoint?

since i have a webpart which i want to store some strings in, i'm curious if there is another way than using session state.. unfortunately i can't use ViewState since i want to store a filter-parameter for a list when the list is paging.

1 Answer 1


Understand the impact of using Session State on the performance of your application! Example design choices: the landing page for a portal that serves 100,000 users must be able to support high volumes of traffic, with occasional peaks of 100% or more increase. In addition, a portal for publishing information should typically be designed for less reliance on session-style information. Therefore, on such a portal's web application, a sensible design goal is to avoid using session state altogether. Design other web apps that support communities and collaborative sites to use session state (recalling that session state objects are local to individual web applications). To store state on the portal site, turn to other mechanisms such as viewstate or cookies.

This is an extract from MSDN

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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