Home > DeveloperSection > Interviews > Explain the various modes of storing ASP.NET session.

Posted on    May-23-2011 2:33 AM

 ASP.Net ASP.Net 
 1 Answer(s)
  1449  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Posted on    May-23-2011 12:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick