How many types of session in asp.net2.0

Answer Posted / sudhakarraoadapa

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

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are triggers of an updatepanel?

549


To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?

601


What is clickid?

553


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

630


What does uri mean?

489






What do you understand from custom control?

605


How tooltip is set through code-behind in ASP.NET?

575


What is the difference between Session and response.Redirect?

612


What are the advantages of passport authentication?

513


Define page fragment caching?

520


How many types cache in asp net?

528


What is the difference between adding reference in solution explorer and adding references by using ?

570


From which base class all web forms are inherited?

497


What are the layouts of ASP.NET Pages?

614


How do sessions work?

532