pros and cons of enabling sharepoint session in 2013

suyog mahindrakar 21 Reputation points
2022-04-04T06:42:54.993+00:00

Hi All,

We want to enable sessions in Sharepoint 2013 , before enabling want to know pros and cons of enabling session in SharePoint 2013 server

@trevorseward

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,461 Reputation points
    2022-04-04T10:22:01.723+00:00

    Hi @suyog mahindrakar ,

    Per my research, the advantages of using session state are as follows:

    1. It is easy to implement.
    2. It ensures data durability, since session state retains data even if ASP.NET work process restarts as data in Session State is stored in other process space.
    3. It works in the multi-process configuration, thus ensures platform scalability.

    The disadvantages of using session state are:

    1. Since data in session state is stored in server memory, it is not advisable to use session state when working with large sum of data. Session state variable stays in memory until you destroy it, so too many variables in the memory effect performance.

    For Reference: Advantages and disadvantages of using Session


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.