What are the different types of sessions in ASP.Net? Name them.

Showing Answers 1 - 46 of 46 Answers

mirza ali

  • May 14th, 2007
 

Their are two type of sessions
1)In Proc
2)Out Proc

InProc : Session run with in the webserver

OutProc : Session run outside of the Webserver

kishore.ib

  • Dec 19th, 2007
 

ASP.NET provides In-Process and Out-of-Process state management.  In-Process stores the session in memory on the web server.  This requires the a "sticky-server" (or no load-balancing) so that the user is always reconnected to the same web server.  Out-of-Process Session state management stores data in an external data source.  The external data source may be either a SQL Server or a State Server service.  Out-of-Process state management requires that all objects stored in session are serializable.

kirangiet

  • Oct 21st, 2009
 

Session Management can be achieved in two ways

1)InProc
2)OutProc

OutProc is again two types
1)State Server
2)SQL Server


InProc
Adv.:
1) Faster as session resides in the same process as the application
2) No need to serialize the data

DisAdv.:
1) Will degrade the performance of the application if large chunk of data is stored
2) On restart of IIS all the Session info will be lost


State Server
Adv.:
1) Faster then SQL Server session management
2) Safer then InProc. As IIS restart
won't effect the session data


DisAdv.:
1) Data need to be serialized
2) On restart of ASP.NET State Service session info will be lost
3)Slower as compared to InProc


SQL Server
Adv.:
1) Reliable and Durable
2) IIS and ASP.NET State Service
restart won't effect the session data
3) Good place for storing large chunk of data


DisAdv.:
1) Data need to be serialized
2) Slower as compare to InProc and State Server
3)Need to purchase Licensed
version of SQL Server

saurav painuly

  • Jul 27th, 2011
 

There are three kinds of session, and they are listed as follows
1. Inprocess.
2. Outprocess.
3. Sql server session.

where they are stored.
1. inproc - default stored in web.config.
2. outproc - stored in server side.
3.Sql server - stored in database.

  Was this answer useful?  Yes

VenuGondela

  • Aug 29th, 2011
 

The following list describes the available session state modes:

InProc mode : which stores session state in memory on the Web server. This is the default.

StateServer mode : which stores session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

SQLServer mode : which stores session state in a SQL Server database. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

Custom mode : which enables you to specify a custom storage provider.

Off mode : which disables session state.

You can specify which mode you want ASP.NET session state to use by assigning a SessionStateMode enumeration values to the mode attribute of the sessionState element in your application's Web.config file. Modes other than InProc and Off require additional parameters, such as connection-string values
The above information getting by MSDN.For Detail Information please read the below link.
http://msdn.microsoft.com/en-us/library/ms178586(v=vs.80).aspx

  Was this answer useful?  Yes

suresh

  • Feb 2nd, 2012
 

1)inprocess
2)stateserver
3)sqlserver
4)custom

  Was this answer useful?  Yes

venkatesh

  • Mar 12th, 2012
 

client side session
server side session

  Was this answer useful?  Yes

anusha

  • Nov 16th, 2012
 

They are two type of sessions
1. Session
2. Cookieless session

  Was this answer useful?  Yes

Arvind Kumar Tiwari

  • Nov 27th, 2012
 

Types of sessions state mode in ASP.NET
1. In process mode
2. Out process mode
3. SQL Server mode
4. Cookieless session

  Was this answer useful?  Yes

test

  • May 3rd, 2014
 

1. Inproc
2. Out Proc
3. StateServer

  Was this answer useful?  Yes

Jaimie

  • Feb 1st, 2016
 

1. Inproc
2. Out Proc
3. StateServer

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions