top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are various methods of session maintenance in ASP.NET?

+2 votes
369 views
What are various methods of session maintenance in ASP.NET?
posted Sep 15, 2015 by Jayshree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In ASP.NET there are three types of methods for session maintenance :

In-process storage

Session State Service

Microsoft SQL Server

  1. In the in-process storage mode the session state is stored in the memory space of the Asp.net_wp.exe process. No doubt, it is the fastest method but the performance will be affected due to the consumption of the bulk memory on the web server.

  2. Session state service is an another method and can be used as an alternative to in-process storage method. In this method the serialized session information is stored in a separate process (Asp.net_state.exe). Also, the cost of serialization can affect the performance bulk of objects are stored at a time.

  3. Lastly, the third method which is known as Microsoft SQL Server is used to store state information.In this mode the serialized session information is stored in the MS SQL Server database. And similar to session state service in this also the performance will be affected due to storing of bulk objects

answer Sep 21, 2015 by Manikandan J
...