Showing posts with label Advantages of Session in asp.net. Disadvantages of Session in asp.net.. Show all posts
Showing posts with label Advantages of Session in asp.net. Disadvantages of Session in asp.net.. Show all posts

Wednesday, 23 July 2014

Advantages and Disadvantages of Session in asp.net.



Following are the basic advantages and disadvantages of session:

Advantages:

  • It stores user states and data to all over the application.
  • Easy mechanism to implement and we can store any kind of object.
  • Stores every user data separately.
  • Session is secure and transparent from user because session object is stored on the server.

Disadvantages:

  • Performance overhead in case of large number of user, because of session data stored in server memory.
  • Overhead involved in serializing and De-Serializing session Data. Because In case of StateServer and SQLServer session mode we need to serialize the object before store.