---
title: "What are the various Session modes in ASP.NET?"  
description: "What are the various Session modes in ASP.NET?"  
author: "Manish Kumar"  
published: 2017-06-17  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/23266/what-are-the-various-session-modes-in-asp-dot-net  
category: "c#"  
tags: ["c#", "asp.net"]  
reading_time: 1 minute  

---

# What are the various Session modes in ASP.NET?

## In-proc:

In-proc Session data is stored in the same machine as that of the server. When the server restarts session data is lost. In this Session data is overhead on the server.

## State server:

In the State server Session data is stored in a separate machine.

**SQL Server:**

In the Sql Server Session data is stored in a SQL Server database and kept centrally.

## Answers

### Answer by Manish Kumar

## In-proc:

In-proc Session data is stored in the same machine as that of the server. When the server restarts session data is lost. In this Session data is overhead on the server.

## State server:

In the State server Session data is stored in a separate machine.

**SQL Server:**

In the Sql Server Session data is stored in a SQL Server database and kept centrally.


---

Original Source: https://www.mindstick.com/interview/23266/what-are-the-various-session-modes-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
