---
title: "Explain the various modes of storing ASP.NET session."  
description: "Explain the various modes of storing ASP.NET session."  
author: "Anonymous User"  
published: 2011-05-23  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1004/explain-the-various-modes-of-storing-asp-dot-net-session  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Explain the various modes of storing ASP.NET session.

Types of sessions:

- InProc: The default way to use sessions. InProc is the fastest way to store and access sessions.
- OutProc: \ i. State server: 15% slower than InProc. Session is serialized and stored in aspnet_state.exe process. Stateserver sessions can be stored on a separate machine too. \ ii. SQL Server: 25% slower than InProc. Used when data is to be serialized and stored in SQL Server database.

## Answers

### Answer by Anonymous User

Types of sessions:

- InProc: The default way to use sessions. InProc is the fastest way to store and access sessions.
- OutProc: \ i. State server: 15% slower than InProc. Session is serialized and stored in aspnet_state.exe process. Stateserver sessions can be stored on a separate machine too. \ ii. SQL Server: 25% slower than InProc. Used when data is to be serialized and stored in SQL Server database.


---

Original Source: https://www.mindstick.com/interview/1004/explain-the-various-modes-of-storing-asp-dot-net-session

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
