GeekInterview.com
Series: Subject: Topic:
Question: 117 of 348

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

Asked by: Interview Candidate | Asked on: Apr 12th, 2007
Showing Answers 1 - 13 of 13 Answers
mirza ali

Answered On : 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

Yes  1 User has rated as useful.
  
Login to rate this answer.
kishore.ib

Answered On : Dec 19th, 2007

View all answers by kishore.ib

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.

Yes  1 User has rated as useful.
  
Login to rate this answer.
kirangiet

Answered On : Oct 21st, 2009

View all answers by kirangiet

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

Yes  1 User has rated as useful.
  
Login to rate this answer.
saurav painuly

Answered On : 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.

  
Login to rate this answer.
sahilsethi26

Answered On : Aug 5th, 2011

View all answers by sahilsethi26

There are two types of sessions in asp.net:-

1) In process session
2) Out process session

  
Login to rate this answer.
VenuGondela

Answered On : 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

  
Login to rate this answer.
suresh

Answered On : Feb 2nd, 2012

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

  
Login to rate this answer.

Question is about session type not the their mode

  
Login to rate this answer.
MyLSC

Answered On : Feb 21st, 2012

View all answers by MyLSC

Server session
http session

  
Login to rate this answer.

1. Inproc
2. Out Proc
3. StateServer

  
Login to rate this answer.
venkatesh

Answered On : Mar 12th, 2012

client side session
server side session

  
Login to rate this answer.
anusha

Answered On : Nov 16th, 2012

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

  
Login to rate this answer.
Arvind Kumar Tiwari

Answered On : 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

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.