---
title: "What are the Advantage and disadvantage of Session?"  
description: "What are the Advantage and disadvantage of Session?"  
author: "Anonymous User"  
published: 2015-02-01  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/2319/what-are-the-advantage-and-disadvantage-of-session  
category: "c#"  
tags: ["asp.net", "session"]  
reading_time: 2 minutes  

---

# What are the Advantage and disadvantage of Session?

**Advantages:**\
Session provide us the way of maintain user state/data.\
It is very easy to implement.\
One big advantage of session is that we can store any kind of object in it. :eg, datatabe, dataset.. etc\
By using session we don't need to worry about data collesp, because it store every client data separately.\
Session is secure and transparent from the user.\
**Disadvantages:**\
Performance overhead in case of large volumes of data/user, because session data is stored in server memory.\
Overhead involved in serializing and de-serializing session data, because in the case of StateServer and SQLServer session modes, we need to serialize the objects before storing them.\

## Answers

### Answer by Anonymous User

**Advantages:**\
Session provide us the way of maintain user state/data.\
It is very easy to implement.\
One big advantage of session is that we can store any kind of object in it. :eg, datatabe, dataset.. etc\
By using session we don't need to worry about data collesp, because it store every client data separately.\
Session is secure and transparent from the user.\
**Disadvantages:**\
Performance overhead in case of large volumes of data/user, because session data is stored in server memory.\
Overhead involved in serializing and de-serializing session data, because in the case of StateServer and SQLServer session modes, we need to serialize the objects before storing them.\


---

Original Source: https://www.mindstick.com/interview/2319/what-are-the-advantage-and-disadvantage-of-session

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
