Interviews13 answers
How many types of session in ASP.NET
13 Answers
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
Shravan ChaurasiyaPosted Apr 27, 2016, 2:56 AM EDT
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.
sambasiva raoPosted Sep 11, 2014, 4:28 AM EDT
You have following types of session management in asp.net which you can define in your web.config file
Session mode="inproc"...means the session will be stored on the webserver within your application
session mode="outproc"....means session will be stored on the server outside your application
session mode="stateserver"...means session will be stored in a temporary memory in the database
session mode="sqlserver"...means session will be stored in the database permanently.
Narendra KumarPosted Apr 2, 2014, 2:23 AM EDT
Please visit here to see Session Management in ASP.NET
http://aspdotnetcode.blogspot.in/search/label/Interview
santosh singhPosted Jan 21, 2014, 8:38 AM EST
asp.net supports 4 types of sessions 1)in process:The session with in application domain under workprocessor is called in process session. The session out side app domain external to workprocessor is called out process session. the external process for maintaining session can be 2)state server 3)sql server 4)custom[it requires manual coding
sandip singhPosted Dec 29, 2013, 7:33 PM EST
asp.net supports 4 types of sessions 1)in process 2)state server 3)sql server 4)custom
sandip singhPosted Dec 29, 2013, 7:33 PM EST
asp.net supports 4 types of sessions 1)in process 2)state server 3)sql server 4)custom
sandip singhPosted Dec 29, 2013, 7:33 PM EST
asp.net supports 4 types of sessions 1)in process 2)state server 3)sql server 4)custom
sandip singhPosted Dec 29, 2013, 7:32 PM EST
Two Types
1-Inprocess
2-OutProcess
pramod prasadPosted Apr 27, 2012, 6:54 PM EDT
Three Types of Session
i) inprocess session
II)out Process session
III) SQl-server session
Inprocess session by default in web.cofig File.
out process is stored at server side.
sql-server session is stored in Database(sql).
i) inprocess session
II)out Process session
III) SQl-server session
Inprocess session by default in web.cofig File.
out process is stored at server side.
sql-server session is stored in Database(sql).
sanjeev kumarPosted Nov 3, 2008, 7:41 PM EST
asp.net supports 4 types of sessions
1)in process:The session with in application domain under workprocessor is called in process session.
The session out side app domain external to workprocessor is called out process session. the external process for maintaining session can be
2)state server
3)sql server
4)custom[it requires manual coding
Rajesh GPosted Nov 2, 2008, 7:53 AM EST
asp.net supports 4 types of sessions
1)in process:The session with in application domain under workprocessor is called in process session
The session out side app domain external to workprocessor is called out process session. the external process for maintaining session can be
2)state server
3)sql server
4)custom[it requires manual coding
Rajesh GPosted Nov 2, 2008, 7:52 AM EST
asp.net supports 4 types of sessions
1)in process
2)state server
3)sql server
4)custom
Rajesh GPosted Nov 2, 2008, 7:45 AM EST
