Session Management can be achieved in two ways1)InProc 2)OutProcOutProc is again two types 1)State Server 2)SQL ServerInProc 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 lostState Server Adv.: 1) Faster then SQL Server session management 2) Safer then InProc. As IIS restart won't effect the session dataDisAdv.: 1) Data need to be serialized 2) On restart of ASP.NET State Service session info will be lost 3)Slower as compared to InProcSQL 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 dataDisAdv.: 1) Data need to be serialized 2) Slower as compare to InProc and State Server 3)Need to purchase Licensed version of SQL Server
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.
You have following types of session management in asp.net which you can define in your web.config fileSession 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.
Please visit here to see Session Management in ASP.NET http://aspdotnetcode.blogspot.in/search/label/Interview
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
asp.net supports 4 types of sessions 1)in process 2)state server 3)sql server 4)custom
Two Types 1-Inprocess 2-OutProcess
Three Types of Session i) inprocess sessionII)out Process sessionIII) SQl-server sessionInprocess session by default in web.cofig File.out process is stored at server side.sql-server session is stored in Database(sql).
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